at

Time.at(time) â timeTime.at(seconds_with_frac) â timeTime.at(seconds, microseconds_with_frac) â time Class Public methods Creates a new Time object with the value given by time, the given number of seconds_with_frac, or seconds and microseconds_with_frac since the Epoch. seconds_with_frac and microseconds_with_frac can be an Integer, Float, Rational, or other Numeric. non-portable feature allows the offset to be negative on some systems. If a numeric argument is given, the result

remote_addr=

remote_addr=(addr) Instance Public methods

new

new(ltn=nil, knj=nil, keys=nil) Class Public methods

resolver

resolver(*uri_args) Instance Public methods

namespace

namespace(prefix=nil) Instance Public methods Evalutas to the URI for a prefix, or the empty string if no such namespace is declared for this element. Evaluates recursively for ancestors. Returns the default namespace, if there is one. prefix the prefix to search for. If not supplied, returns the default namespace if one exists Returns the namespace URI as a String, or nil if no such namespace exists. If the namespace is undefined, returns an empty string doc = Document.

match

rxp.match(str) â matchdata or nilrxp.match(str,pos) â matchdata or nil Instance Public methods Returns a MatchData object describing the match, or nil if there was no match. This is equivalent to retrieving the value of the special variable $~ following a normal match. If the second parameter is present, it specifies the position in the string to begin the search. /(.)(.)(.)/.match("abc")[2] #=> "b" /(.)(.)/.match("abc", 1)[2] #=> "c" If a block is given, invoke

write

IO.write(name, string, [offset] ) => fixnumIO.write(name, string, [offset], open_args ) => fixnum Class Public methods Opens the file, optionally seeks to the given offset, writes string, then returns the length written. write ensures the file is closed before returning. If offset is not given, the file is truncated. Otherwise, it is not truncated. If the last argument is a hash, it specifies option for internal open(). The key would be the following. open_args: is ex

ref

ref() Instance Public methods

has_rowattrib?

has_rowattrib?(idx, name) Instance Public methods

advance

advance(options) Instance Public methods Uses Date to provide precise Time calculations for years, months, and days. The options parameter takes a hash with any of these keys: :years, :months, :weeks, :days, :hours, :minutes, :seconds.