insert

insert(idx, *lines) Instance Public methods

class_name

class_name() Instance Public methods Returns the class name for the macro. composed_of :balance, class_name: 'Money' returns 'Money' has_many :clients returns 'Client'

inheritance_column

inheritance_column() Instance Public methods Defines the name of the table column which will store the class name on single-table inheritance situations. The default inheritance column name is type, which means it's a reserved word inside Active Record. To be able to use single-table inheritance with another column name, or to use the column type in your own model for something else, you can set inheritance_column: self.inheritance_column = 'zoink'

mtime=

mtime=(p1) Instance Public methods Specify the modification time (mtime) in the gzip header. Using a Fixnum or Integer

write

write(file, *opts) Instance Public methods

reap

reap() Instance Public methods Removes dead connections from the pool. A dead connection can occur if a programmer forgets to close a connection at the end of a thread or a thread dies unexpectedly.

mtime

mtime(filename, local = false) Instance Public methods Returns the last modification time of the (remote) file. If local is true, it is returned as a local time, otherwise it's a UTC time.

get

get() Instance Public methods

select

struct.select {|i| block } â arraystruct.select â an_enumerator Instance Public methods Invokes the block passing in successive elements from struct, returning an array containing those elements for which the block returns a true value (equivalent to Enumerable#select). Lots = Struct.new(:a, :b, :c, :d, :e, :f) l = Lots.new(11, 22, 33, 44, 55, 66) l.select {|v| (v % 2).zero? } #=> [22, 44, 66]

new

new() Class Public methods