reorder

reorder(*args) Instance Public methods Replaces any existing order defined on the relation with the specified order. User.order('email DESC').reorder('id ASC') # generated SQL has 'ORDER BY id ASC' Subsequent calls to order on the same relation will be appended. For example: User.order('email DESC').reorder('id ASC').order('name ASC') generates a query with 'ORDER BY id ASC, name ASC'.

_unset_variable

_unset_variable(p1, p2) Instance Public methods

parent=

parent=( other ) Instance Public methods Sets the parent of this child to the supplied argument. other Must be a Parent object. If this object is the same object as the existing parent of this child, no action is taken. Otherwise, this child is removed from the current parent (if one exists), and is added to the new parent. Returns The parent added

add_event_to_arry

add_event_to_arry( arry, evt ) Instance Protected methods

read_type_class

read_type_class(type, reference) Class Public methods

check

check(pattern) Instance Public methods This returns the value that scan would return, without advancing the scan pointer. The match register is affected, though. s = StringScanner.new("Fri Dec 12 1975 14:39") s.check /Fri/ # -> "Fri" s.pos # -> 0 s.matched # -> "Fri" s.check /12/ # -> nil s.matched # -> nil Mnemonic: it âchecksâ to see whether a scan will return a value.

__destroy_hook__

__destroy_hook__() Instance Public methods

lock

lock(path, body, initheader = nil) Instance Public methods Sends a LOCK request to the path and gets a response, as an HTTPResponse object.

def_else_enc

def_else_enc(to_enc, from_enc) Instance Public methods

dataType

dataType() Instance Public methods VARIANT dataType the data type of the node