formatted_offset

formatted_offset(colon=true, alternate_utc_string = nil) Instance Public methods Returns the offset of this time zone as a formatted string, of the format â+HH:MMâ.

register_interceptors

register_interceptors(*interceptors) Class Public methods Register one or more Interceptors which will be called before mail is sent.

collection_check_boxes

collection_check_boxes(method, collection, value_method, text_method, options = {}, html_options = {}, &block) Instance Public methods Wraps ActionView::Helpers::FormOptionsHelper#collection_check_boxes for form builders: <%= form_for @post do |f| %> <%= f.collection_check_boxes :author_ids, Author.all, :id, :name_with_initial %> <%= f.submit %> <% end %> Please refer to the documentation of the base helper for details.

midday

midday() Instance Public methods Alias for: middle_of_day

tidy_bytes

tidy_bytes(string, force = false) Instance Public methods Replaces all ISO-8859-1 or CP1252 characters by their UTF-8 equivalent resulting in a valid UTF-8 string. Passing true will forcibly tidy all bytes, assuming that the string's encoding is entirely CP1252 or ISO-8859-1.

last

last(limit = 1) Instance Public methods Returns the last character of the string. If a limit is supplied, returns a substring from the end of the string until it reaches the limit value (counting backwards). If the given limit is greater than or equal to the string length, returns self. str = "hello" str.last # => "o" str.last(1) # => "o" str.last(2) # => "lo" str.last(0) # => "" str.last(6) # => "hello"

run

run() Instance Public methods

insert

insert(index, *args, &block) Instance Public methods Also aliased as: insert_before

swap

swap(*args, &block) Instance Public methods

titlecase

titlecase() Instance Public methods Alias for: titleize