values_at

struct.values_at(selector,... ) â an_array Instance Public methods Returns an array containing the elements in self corresponding to the given selector(s). The selectors may be either integer indices or ranges. See also </code>.select<code>. a = %w{ a b c d e f } a.values_at(1, 3, 5) a.values_at(1, 3, 5, 7) a.values_at(-1, -3, -5, -7) a.values_at(1..3, 2...5)

beep

beep() Class Public methods Sounds an audible alarm on the terminal, if possible; otherwise it flashes the screen (visual bell). see also ::flash

w3cdtf 2

w3cdtf() Instance Public methods

puzzleSwitch

puzzleSwitch(w, num) Instance Public methods puzzleSwitch â This procedure is invoked when the user clicks on a particular button; if the button is next to the empty space, it moves the button into the empty space.

disconnect!

disconnect!() Instance Public methods Disconnects from the database if already connected. Otherwise, this method does nothing.

set_trace

set_trace( arg ) Class Public methods

has_basic_credentials?

has_basic_credentials?(request) Instance Public methods

blt_table_add

blt_table_add(*args) Instance Public methods

encode_www_form

encode_www_form(enum) Class Public methods Generate URL-encoded form data from given enum. This generates application/x-www-form-urlencoded data defined in HTML5 from given an Enumerable object. This internally uses ::encode_www_form_component. This method doesn't convert the encoding of given items, so convert them before call this method if you want to send data as other than original encoding or mixed encoding data. (Strings which are encoded in an HTML5 ASCII incompatible encod

years_ago

years_ago(years) Instance Public methods Returns a new date/time the specified number of years ago.