call

call(template) Instance Public methods

index

index(idx) Instance Public methods

read

read(options={}) Instance Public methods #read) reads a content referenced by self and returns the content as string. The string is extended with OpenURI::Meta. The argument options is same as #open.

row_size

row_size() Instance Public methods Alias for: row_count

select_minute

select_minute(datetime, options = {}, html_options = {}) Instance Public methods Returns a select tag with options for each of the minutes 0 through 59 with the current minute selected. Also can return a select tag with options by minute_step from 0 through 59 with the 00 minute selected. The datetime can be either a Time or DateTime object or an integer. Override the field name using the :field_name option, 'minute' by default. my_time = Time.now + 6.hours # Generates a select fi

to_i

time.to_i â int Instance Public methods Returns the value of time as an integer number of seconds since the Epoch. t = Time.now "%10.5f" % t.to_f #=> "1270968656.89607" t.to_i #=> 1270968656

locale_charmap

Encoding.locale_charmap â string Class Public methods Returns the locale charmap name. It returns nil if no appropriate information. Debian GNU/Linux LANG=C Encoding.locale_charmap #=> "ANSI_X3.4-1968" LANG=ja_JP.EUC-JP Encoding.locale_charmap #=> "EUC-JP" SunOS 5 LANG=C Encoding.locale_charmap #=> "646" LANG=ja Encoding.locale_charmap #=> "eucJP" The result is highly platform dependent. So ::find may cause an error. If you need some encod

render_hello_world

render_hello_world() Instance Public methods :ported:

highlight

highlight(text, phrases, options = {}) Instance Public methods Highlights one or more phrases everywhere in text by inserting it into a :highlighter string. The highlighter can be specialized by passing :highlighter as a single-quoted string with \1 where the phrase is to be inserted (defaults to '<mark>1</mark>') highlight('You searched for: rails', 'rails') # => You searched for: <mark>rails</mark> highlight('You searched for: ruby, rails, dhh', 'actio

mailer_class

mailer_class() Instance Public methods