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
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
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.
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:
x
responds to both each and force, which means that x
is a lazy enumerator.
x
is an array or responds to to_ary.
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