register_preview_interceptor

register_preview_interceptor(interceptor) Instance Public methods Register an Interceptor which will be called before mail is previewed. Either a class or a string can be passed in as the Interceptor. If a string is passed in it will be constantized.

base_root

base_root() Class Public methods Returns the base root for a common set of generators. This is used to dynamically guess the default source root.

code

code() Instance Public methods Returns a string to ensure compatibility with Net::HTTPResponse.

classify

classify(table_name) 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" Singular names are not handled correctly: 'calculus'.classify # => "Calculu"

ago

ago(other) Instance Public methods

greeting

greeting() Instance Public methods

middle_of_day

middle_of_day() Instance Public methods Returns a new DateTime representing the middle of the day (12:00) midday noon at_midday at_noon at_middle_of_day

test_finding_incorrect_type_data

test_finding_incorrect_type_data() Instance Public methods

inherited

inherited(base) Instance Public methods

[]

[](arg) Class Public methods Locate a specific time zone object. If the argument is a string, it is interpreted to mean the name of the timezone to locate. If it is a numeric value it is either the hour offset, or the second offset, of the timezone to find. (The first one with that offset will be returned.) Returns nil if no such time zone is known to the system.