rescue_template

rescue_template() Instance Public methods

allocate

class.allocate() â obj Instance Public methods Allocates space for a new object of class's class and does not call initialize on the new instance. The returned object must be an instance of class. klass = Class.new do def initialize(*args) @initialized = true end def initialized? @initialized || false end end klass.allocate.initialized? #=> false

as_json

as_json(*) Instance Public methods

reverse_merge

reverse_merge(other_hash) Instance Public methods Merges the caller into other_hash. For example, options = options.reverse_merge(size: 25, velocity: 10) is equivalent to options = { size: 25, velocity: 10 }.merge(options) This is particularly useful for initializing an options hash with default values.

add

add(severity, message = nil, progname = nil, &block) Instance Public methods Almost duplicates #add. progname is ignored.

key

key( keystr ) Instance Public methods

XMLDocument=

XMLDocument=(arg0) Instance Public methods VOID #XMLDocument

readlines

ARGF.readlines(sep=$/) â arrayARGF.readlines(limit) â arrayARGF.readlines(sep, limit) â array Instance Public methods Reads ARGF's current file in its entirety, returning an Array of its lines, one line per element. Lines are assumed to be separated by sep. lines = ARGF.readlines lines[0] #=> "This is line one\n"

set_numlist_type

set_numlist_type(val) Instance Public methods Also aliased as: numlist_type=

open

open(*args) Class Public methods Creates a new Tempfile. If no block is given, this is a synonym for ::new. If a block is given, then a Tempfile object will be constructed, and the block is run with said object as argument. The Tempfile object will be automatically closed after the block terminates. The call returns the value of the block. In any case, all arguments (+*args+) will be passed to ::new. Tempfile.open('foo', '/home/temp') do |f| ... do something with f ... end # Eq