if_modified_since

if_modified_since() Instance Public methods

tty_output?

tty_output?() Instance Public methods True if we are outputting to TTY, false otherwise

new

new(gem, options = {}) Class Public methods Constructs an uninstaller that will uninstall gem

set_window_element

set_window_element(idxs, win) Instance Public methods

freeze

obj.freeze â obj Instance Public methods Prevents further modifications to obj. A RuntimeError will be raised if modification is attempted. There is no way to unfreeze a frozen object. See also Object#frozen?. This method returns self. a = [ "a", "b", "c" ] a.freeze a << "z" produces: prog.rb:3:in `<<': can't modify frozen array (RuntimeError) from prog.rb:3

div

big.div(other) â integer Instance Public methods Performs integer division: returns integer value.

prepend_around_action

prepend_around_action(names, block) Instance Public methods Prepend a callback around actions. See #_insert_callbacks for parameter details. Aliased as prepend_around_filter.

today

Date.today([start=Date::ITALY]) â dateDate.today #=> # Class Public methods Creates a date object denoting the present day.

save

save(*) Instance Public methods Saves the model. If the model is new a record gets created in the database, otherwise the existing record gets updated. By default, save always run validations. If any of them fail the action is cancelled and save returns false. However, if you supply validate: false, validations are bypassed altogether. See ActiveRecord::Validations for more information. There's a series of callbacks associated with save. If any of the before_* callbacks return fals

linestart

linestart() Instance Public methods