signal_status

signal_status(status) Instance Public methods Evaluates the given block using the given status.

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

validate_one_tag_name

validate_one_tag_name(ignore_unknown_element, name, tags) Instance Public methods

singular_name

singular_name() Instance Protected methods FIXME: We are avoiding to use alias because a bug on thor that make this method public and add it to the task list.

getResponseHeader

getResponseHeader(arg0) Instance Public methods BSTR getResponseHeader Get HTTP response header BSTR arg0 --- bstrHeader [IN]

filter

filter(params) Instance Public methods

shift

ary.shift â obj or nilary.shift(n) â new_ary Instance Public methods Removes the first element of self and returns it (shifting all other elements down by one). Returns nil if the array is empty. If a number n is given, returns an array of the first n elements (or less) just like array.slice!(0, n) does. With ary containing only the remainder elements, not including what was shifted to new_ary. See also #unshift for the opposite effect. args = [ "-m", "-q", "filename" ] args.sh

strip_heredoc

strip_heredoc() Instance Public methods Strips indentation in heredocs. For example in if options[:usage] puts <<-USAGE.strip_heredoc This command does such and such. Supported options are: -h This message ... USAGE end the user would see the usage message aligned against the left margin. Technically, it looks for the least indented line in the whole string, and removes that amount of leading whitespace.

public_constant

mod.public_constant(symbol, ...) => mod Instance Public methods Makes a list of existing constants public.

number_to_currency

number_to_currency(number, options = {}) Instance Public methods Formats a number into a currency string (e.g., $13.65). You can customize the format in the options hash. Options :locale - Sets the locale to be used for formatting (defaults to current locale). :precision - Sets the level of precision (defaults to 2). :unit - Sets the denomination of the currency (defaults to â$â). :separator - Sets the separator between the units (defaults to â.â). :delimiter - Sets the th