search for: otherclasses

Displaying 6 results from an estimated 6 matches for "otherclasses".

2007 May 10
13
Is there a way to do incremental search?
Say the user first enters "ruby" for search and gets 1000 results. Then he can search "rails" just in the 1000 results just returned. The common scenario is some kind of advanced search. User can incrementally add criteria and the program will narrow the results step by step. I know that at least I can use all the criteria as a whole to do the searching, but this is a waste
2006 Jan 12
2
Finding by association
I have two objects that are associated in the following way: class Class1 < ApplicationController has_and_belongs_to_many :class2s has_and_belongs_to_many :otherClasses end class Class2 < ApplicationController has_and_belongs_to_many :class1s has_and_bleongs_to_many :otherClasses end Now, when I run the following query, @objects = Class1.find(:all, :conditions => ["class2s.id = ?", params[:id]], :include => :class2s) I expec...
2007 Jul 24
3
How to require a defined type...
Hi all, I''m struggling with the following: I have a defined type wrapped in a class: class myclass { define mytype(bla) { file { "blabla": .... } exec { "blablabla": ... } } } And I access the defined type in my other class by doing this: class otherclass { include myclass myclass::mytype { "alb": ... } # and here I want to
2015 Mar 13
0
Ah I've got it now .Thanks! RE: Understanding why "no metadata object found ... not exported?" warnings from the methods package exist, and what they mean
Ah, I've got it now. >From `?base:bindenv` comes > " The namespace environments of packages with namespaces are locked when loaded." A locked environment > " prevents adding or removing variable bindings from the environment. Changing the value of a variable is still possible unless the binding has been locked" A bit of experimentation shows that as well as
2015 Mar 13
1
Understanding why "no metadata object found ... not exported?" warnings from the methods package exist, and what they mean
On looking more closely, the purpose of finding the class definition is to update the entry for the new relationship, as the warning message suggests. That requires that the namespace holding the definition be writable. In the case of subclass information, the original namespace is very likely to be locked, if it's not the package currently being loaded. Copying the definition in order to
2006 Feb 14
3
S4 classes and methods with optional arguments
Hi, i have used S4 classes to implement a unified access to random number generators (package rstream on CRAN). I have used a construct to allow optional arguments: if(!isGeneric("rstream.sample")) setGeneric("rstream.sample", function(stream,...) standardGeneric("rstream.sample")) setMethod("rstream.sample",