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.

unix_server_loop

unix_server_loop(path) Class Public methods creates a UNIX socket server on path. It calls the block for each socket accepted. If host is specified, it is used with port to determine the server ports. The socket is not closed when the block returns. So application should close it. This method deletes the socket file pointed by path at first if the file is a socket file and it is owned by the user of the application. This is safe only if the directory of path is not changed by a mal