Results for: "pstore"

Returns a string for DNS reverse lookup. It returns a string in RFC3172 form for an IPv6 address.

Returns the prefix length in bits for the ipaddr.

Sets the prefix length in bits

No documentation available

Returns the bound receiver of the binding object.

Returns true if and only if the current severity level allows for the printing of ERROR messages.

Sets the severity to ERROR.

Args

logdev

The log device. This is a filename (String) or IO object (typically STDOUT, STDERR, or an open file). reopen the same filename if it is nil, do nothing for IO. Default is nil.

Description

Reopen a log device.

Log an ERROR message.

See info for more information.

No documentation available

Directs to reject specified class argument.

t

Argument class specifier, any object including Class.

reject(t)

See reject.

Release code

No documentation available

Subject of on / on_head, accept / reject

Removes the last List.

No documentation available

Returns option summary list.

Parses command line arguments argv in order. When a block is given, each non-option argument is yielded. When optional into keyword argument is provided, the parsed option values are stored there via []= method (so it can be Hash, or OpenStruct, or other similar object).

Returns the rest of argv left unparsed.

Same as order, but removes switches destructively. Non-option arguments remain in argv.

Wrapper method for getopts.rb.

params = ARGV.getopts("ab:", "foo", "bar:", "zot:Z;zot option")
# params["a"] = true   # -a
# params["b"] = "1"    # -b1
# params["foo"] = "1"  # --foo
# params["bar"] = "x"  # --bar x
# params["zot"] = "z"  # --zot Z

See getopts.

Returns the regexp.

m = /a.*b/.match("abc")
m.regexp #=> /a.*b/

Returns the array of matches.

m = /(.)(.)(\d+)(\d)/.match("THX1138.")
m.to_a   #=> ["HX1138", "H", "X", "113", "8"]

Because to_a is called when expanding *variable, there’s a useful assignment shortcut for extracting matched fields. This is slightly slower than accessing the fields directly (as an intermediate array is generated).

all,f1,f2,f3 = * /(.)(.)(\d+)(\d)/.match("THX1138.")
all   #=> "HX1138"
f1    #=> "H"
f2    #=> "X"
f3    #=> "113"

Returns the array of captures; equivalent to mtch.to_a[1..-1].

f1,f2,f3,f4 = /(.)(.)(\d+)(\d)/.match("THX1138.").captures
f1    #=> "H"
f2    #=> "X"
f3    #=> "113"
f4    #=> "8"
Search took: 3ms  ·  Total Results: 3004