test_new_with_invalid_type

test_new_with_invalid_type() Instance Public methods

addToSortColumns_with_event_generate

addToSortColumns_with_event_generate(idx) Instance Public methods

enum_for

lzy.enum_for(method = :each, *args) â lazy_enumlzy.enum_for(method = :each, *args){|*args| block} â lazy_enum Instance Public methods Similar to Kernel#to_enum, except it returns a lazy enumerator. This makes it easy to define Enumerable methods that will naturally remain lazy if called from a lazy enumerator. For example, continuing from the example in Kernel#to_enum: # See Kernel#to_enum for the definition of repeat r = 1..Float::INFINITY r.repeat(2).first(5) # =&g

print_constant

print_constant(*) Instance Public methods Prints when a constant is added

data_type

data_type() Instance Public methods Guesses the type of the data which have been inputed into the stream. The returned value is either BINARY, ASCII, or UNKNOWN.

content_length

content_length() Instance Public methods

register_observer

register_observer(observer) Class Public methods Register an Observer which will be notified when mail is delivered. Either a class, string or symbol can be passed in as the Observer. If a string or symbol is passed in it will be camelized and constantized.

start_accepting

start_accepting() Instance Public methods Prepares the visitor for text generation

select

select(*fields) Instance Public methods Works in two unique ways. First: takes a block so it can be used just like Array#select. Model.all.select { |m| m.field == value } This will build an array of objects from the database for the scope, converting them into an array and iterating through them using Array#select. Second: Modifies the SELECT statement for the query so that only certain fields are retrieved: Model.select(:field) # => [#<Model field:value>] Although in th

selection_remove

selection_remove() Instance Public methods