Results for: "OptionParser"

Retrieves a password from the database for user in realm. If reload_db is true the database will be reloaded first.

Removes a password from the database for user in realm.

Retrieves a password from the database for user in realm. If reload_db is true the database will be reloaded first.

Removes a password from the database for user in realm.

Allow custom handling of requests for files with suffix by class handler

Remove custom handling of requests for files with suffix

A FormData will behave like an Array

Returns the base label of this frame.

Usually same as label, without decoration.

Returns the full file path of this frame.

Same as path, but includes the absolute path.

Check is passed argument valid ‘number’ in RFC 3501 terminology

Ensure argument is ‘number’ or raise DataFormatError

No documentation available

Creates an obscured password in realm with user and password using the auth_type of this database.

Retrieves a password in realm for user for the auth_type of this database. reload_db is a dummy value.

No documentation available
No documentation available
No documentation available
No documentation available

Iterates the given block for each element with an index, which starts from offset. If no block is given, returns a new Enumerator that includes the index, starting from offset

offset

the starting index to use

Returns a new lazy enumerator with the concatenated results of running block once for every element in the lazy enumerator.

["foo", "bar"].lazy.flat_map {|i| i.each_char.lazy}.force
#=> ["f", "o", "o", "b", "a", "r"]

A value x returned by block is decomposed if either of the following conditions is true:

Otherwise, x is contained as-is in the return value.

[{a:1}, {b:2}].lazy.flat_map {|i| i}.force
#=> [{:a=>1}, {:b=>2}]

Like Enumerable#select, but chains operation to be lazy-evaluated.

Like Enumerable#take_while, but chains operation to be lazy-evaluated.

Returns the Object#object_id of the internal object.

Extracts addr from IPV6_PKTINFO ancillary data.

IPV6_PKTINFO is defined by RFC 3542.

addr = Addrinfo.ip("::1")
ifindex = 0
ancdata = Socket::AncillaryData.ipv6_pktinfo(addr, ifindex)
p ancdata.ipv6_pktinfo_addr #=> #<Addrinfo: ::1>

Extracts ifindex from IPV6_PKTINFO ancillary data.

IPV6_PKTINFO is defined by RFC 3542.

addr = Addrinfo.ip("::1")
ifindex = 0
ancdata = Socket::AncillaryData.ipv6_pktinfo(addr, ifindex)
p ancdata.ipv6_pktinfo_ifindex #=> 0
Search took: 6ms  ·  Total Results: 4629