detach

detach(*items) Instance Public methods

main_type

main_type() Instance Public methods Returns a content type string such as âtextâ. This method returns nil if Content-Type: header field does not exist.

to_date

to_date() Instance Public methods Return a Date object of the date which represents self. The Date object do not contain the time component (only date).

repeatDemo

repeatDemo() Instance Public methods Repeating buttons demo:

each

each(ubound = nil, generator = EratosthenesGenerator.new, &block) Instance Public methods Iterates the given block over all prime numbers. Parameters ubound Optional. An arbitrary positive number. The upper bound of enumeration. The method enumerates prime numbers infinitely if ubound is nil. generator Optional. An implementation of pseudo-prime generator. Return value An evaluated value of the given block at the last time. Or an enumerator which is compatible to an En

set_option

set_option(opt, eq) Instance Public methods

time_field

time_field(object_name, method, options = {}) Instance Public methods Returns a #text_field of type âtimeâ. The default value is generated by trying to call strftime with â%T.%Lâ on the objects's value. It is still possible to override that by passing the âvalueâ option. Options Accepts same options as time_field_tag Example time_field("task", "started_at") # => <input id="task_started_at" name="task[started_at]" type="time" />

new

new(lbox, *args) Class Public methods

expand

expand(node) Instance Public methods

time_zone_select

time_zone_select(method, priority_zones = nil, options = {}, html_options = {}) Instance Public methods Wraps ActionView::Helpers::FormOptionsHelper#time_zone_select for form builders: <%= form_for @user do |f| %> <%= f.time_zone_select :time_zone, nil, include_blank: true %> <%= f.submit %> <% end %> Please refer to the documentation of the base helper for details.