each

each() Instance Public methods

toggle!

toggle!(attribute) Instance Public methods Wrapper around toggle that saves the record. This method differs from its non-bang version in that it passes through the attribute setter. Saving is not subjected to validation checks. Returns true if the record could be saved.

latinfont_copy

latinfont_copy(win, wintag=nil) Instance Public methods Also aliased as: asciifont_copy

minutes

minutes() Instance Public methods Also aliased as: minute

bg_eval_string

bg_eval_string(cmd, *eval_args) Class Public methods Also aliased as: background_eval_string, bg_eval_str, background_eval_str

==

==( other ) Instance Public methods Returns true if other is an Attribute and has the same name and value, false otherwise.

next_values

e.next_values â array Instance Public methods Returns the next object as an array in the enumerator, and move the internal position forward. When the position reached at the end, StopIteration is raised. This method can be used to distinguish yield and yield nil. Example o = Object.new def o.each yield yield 1 yield 1, 2 yield nil yield [1, 2] end e = o.to_enum p e.next_values p e.next_values p e.next_values p e.next_values p e.next_values e = o.to_enum p e.next p e.n

[]=

[]=(name, value) Instance Public methods Stores an individual Ruby object or a hierarchy of Ruby objects in the data store file under the root name. Assigning to a name already in the data store clobbers the old data. Example: require "pstore" store = PStore.new("data_file.pstore") store.transaction do # begin transaction # load some data into the store... store[:single_object] = "My data..." store[:obj_heirarchy] = { "Kev Jackson" => ["rational.rb", "pstore.rb"],

compare

compare(idx1, op, idx2) Instance Public methods

add_option

add_option(*opts) Instance Public methods Add a command-line option and handler to the command. See OptionParser#make_switch for an explanation of opts. handler will be called with two values, the value of the argument and the options hash. If the first argument of #add_option is a Symbol, it's used to group options in output. See `gem help list` for an example.