format_date

format_date(time) Class Public methods Formats time as an IMAP-style date.

destroy

destroy() Class Public methods

new

new() Class Public methods

destroy

destroy() Instance Public methods Alias for: unset

convert

ec.convert(source_string) â destination_string Instance Public methods Convert source_string and return destination_string. source_string is assumed as a part of source. i.e. :partial_input=>true is specified internally. finish method should be used last. ec = Encoding::Converter.new("utf-8", "euc-jp") puts ec.convert("\u3042").dump #=> "\xA4\xA2" puts ec.finish.dump #=> "" ec = Encoding::Converter.new("euc-jp", "utf-8") puts ec.convert("\xA4").dump

reflect_on_association

reflect_on_association(association) Instance Public methods Returns the AssociationReflection object for the association (use the symbol). Account.reflect_on_association(:owner) # returns the owner AssociationReflection Invoice.reflect_on_association(:line_items).macro # returns :has_many @api public

display_page

display_page(name) Instance Public methods Outputs formatted RI data for page name.

datetime_select

datetime_select(object_name, method, options = {}, html_options = {}) Instance Public methods Returns a set of select tags (one for year, month, day, hour, and minute) pre-selected for accessing a specified datetime-based attribute (identified by method) on an object assigned to the template (identified by object). If anything is passed in the html_options hash it will be applied to every select tag in the set. # Generates a datetime select that, when POSTed, will be stored in the

use

use(*args, &block) Class Public methods Pushes the given Rack middleware and its arguments to the bottom of the middleware stack.

class_eval

class_eval(*args, &block) Instance Public methods #class_eval on an object acts like singleton_class.class_eval.