Parses an HTTP header raw
into a hash of header fields with an Array of values.
Parses q values in value
as used in Accept headers.
Parses q values in value
as used in Accept headers.
Parses the query component of a URI
in str
Parses the query component of a URI
in str
Creates TCP server sockets bound to address
:port
and returns them.
It will create IPV4 and IPV6 sockets on all interfaces.
Creates TCP server sockets bound to address
:port
and returns them.
It will create IPV4 and IPV6 sockets on all interfaces.
Attempts to activate the current {#possibility} @return [void]
Returns the generator of the group.
See the OpenSSL
documentation for EC_GROUP_get0_generator()
Returns the concatenated string from strings
.
The error message for the missing dependency, including the specifications that had this dependency.
Convert an object to YAML. See Psych.dump
for more information on the available options
.
Re-composes a prime factorization and returns the product.
See Prime#int_from_prime_division
for more details.
Same as Enumerator#with_index(0)
, i.e. there is no starting offset.
If no block is given, a new Enumerator
is returned that includes the index.
Iterates the given block for each element with an arbitrary object, obj
, and returns obj
If no block is given, returns a new Enumerator
.
to_three = Enumerator.new do |y| 3.times do |x| y << x end end to_three_with_string = to_three.with_object("foo") to_three_with_string.each do |x,string| puts "#{string}: #{x}" end # => foo:0 # => foo:1 # => foo:2