[]

mtch[i] â str or nilmtch[start, length] â arraymtch[range] â arraymtch[name] â str or nil Instance Public methods Match Reference â MatchData acts as an array, and may be accessed using the normal array indexing techniques. mtch[0] is equivalent to the special variable $&, and returns the entire matched string. mtch[1], mtch[2], and so on return the values of the matched backreferences (portions of the pattern between parentheses). m = /(

mailer

mailer() Instance Public methods Access the mailer instance.

prime_fasttest?

bn.prime_fasttest? => true | falsebn.prime_fasttest?(checks) => true | falsebn.prime_fasttest?(checks, trial_div) => true | false Instance Public methods Parameters checks - integer trial_div - boolean

index

index(idx) Instance Public methods

ruby

ruby() Class Public methods The path to the running Ruby interpreter.

define_callbacks

define_callbacks(*names) Instance Public methods Define sets of events in the object life cycle that support callbacks. define_callbacks :validate define_callbacks :initialize, :save, :destroy Options :terminator - Determines when a before filter will halt the callback chain, preventing following callbacks from being called and the event from being triggered. This should be a lambda to be executed. The current object and the return result of the callback will be called with the l

new

new(path) Class Public methods

progress_reporter

progress_reporter(*args) Instance Public methods

new

new(data, keys={}) Class Public methods Also aliased as: _new, define

new

new(num) Class Public methods