classify

classify() Instance Public methods Create a class name from a plural table name like Rails does for table names to models. Note that this returns a string and not a class. (To convert to an actual class follow classify with constantize.) 'egg_and_hams'.classify # => "EggAndHam" 'posts'.classify # => "Post"

test_alt_inheritance_condition

test_alt_inheritance_condition() Instance Public methods

acts_like_time?

acts_like_time?() Instance Public methods So that self acts_like?(:time).

number_to_percentage

number_to_percentage(number, options = {}) Instance Public methods Formats a number as a percentage string (e.g., 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 precision of the number (defaults to 3). :significant - If true, precision will be the # of significant_digits. If false, the # of fractional digits (defaults to false). :separator - Sets the separ

current_adapter?

current_adapter?(*types) Instance Public methods

end_of_day

end_of_day() Instance Public methods Converts Date to a Time (or DateTime if necessary) with the time portion set to the end of the day (23:59:59) at_end_of_day

test_inheritance_save

test_inheritance_save() Instance Public methods

num_waiting

num_waiting() Instance Public methods Returns the number of threads currently waiting on this queue.

parent_of?

parent_of?(event) Instance Public methods

marshal_load

marshal_load(array) Instance Public methods