set_state

set_state(state) Instance Public methods

delete

delete(idx) Instance Public methods

set

set(val) Instance Public methods Alias for: value=

/ 2

rat / numeric â numeric Instance Public methods Performs division. Rational(2, 3) / Rational(2, 3) #=> (1/1) Rational(900) / Rational(1) #=> (900/1) Rational(-2, 9) / Rational(-9, 2) #=> (4/81) Rational(9, 8) / 4 #=> (9/32) Rational(20, 9) / 9.8 #=> 0.22675736961451246

link?

link?() Instance Public methods

new

new(context) Class Public methods

entry_hidden?

entry_hidden?() Instance Public methods

transaction

transaction(read_only = false) Instance Public methods Opens a new transaction for the data store. Code executed inside a block passed to this method may read and write data to and from the data store file. At the end of the block, changes are committed to the data store automatically. You may exit the transaction early with a call to either #commit or #abort. See those methods for details about how changes are handled. Raising an uncaught Exception in the block is equivalent t

noraw

noraw() Class Public methods Put the terminal out of raw mode. see ::raw for more detail

grouped_collection_select

grouped_collection_select(object, method, collection, group_method, group_label_method, option_key_method, option_value_method, options = {}, html_options = {}) Instance Public methods Returns <select>, <optgroup> and <option> tags for the collection of existing return values of method for object's class. The value returned from calling method on the instance object will be selected. If calling method returns nil, no selection is made without including :prompt or