load_session

load_session(env) Instance Public methods

decrement_counter

decrement_counter(counter_name, id) Instance Public methods Decrement a numeric field by one, via a direct SQL update. This works the same as #increment_counter but reduces the column value by 1 instead of increasing it. Parameters counter_name - The name of the field that should be decremented. id - The id of the object that should be decremented or an Array of ids. Examples # Decrement the post_count column for the record with an id of 5 DiscussionBoard.decrement_counter(:p

is_a?

is_a?(klass) Instance Public methods Say we're a Time to thwart type checking. kind_of?

getframe

getframe() Instance Public methods Also aliased as: get_frame

verbose

verbose(&block) Instance Public methods Perform a block with $verbose enabled.

cget_strict

cget_strict(opt) Instance Public methods

scrollcommand

scrollcommand(cmd=Proc.new) Instance Public methods Also aliased as: xscrollcommand, yscrollcommand

cget_strict

cget_strict(option) Instance Public methods

box

box(vert, hor) Instance Public methods set the characters to frame the window in. The vertical vert and horizontal hor character. win = Curses::Window.new(5,5,5,5) win.box(?|, ?-)

nth_child

nth_child(a, b, of_type, reverse) Instance Protected methods Returns a lambda that can match an element against the nth-child pseudo class, given the following arguments: a â Value of a part. b â Value of b part. of_type â True to test only elements of this type (of-type). reverse â True to count in reverse order (last-).