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.

color

color(text, color, bold=false) Instance Protected methods Set color by using a string or one of the defined constants. If a third option is set to true, it also adds bold to the string. This is based on the Highline implementation and will automatically append CLEAR to the end of the returned String.

response_from_page

response_from_page() Instance Protected methods assert_select and css_select call this to obtain the content in the HTML page.