Results for: "OptionParser"

No documentation available

Foo::Bar += baz ^^^^^^^^^^^^^^^

No documentation available

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#filter_map, but chains operation to be lazy-evaluated.

(1..).lazy.filter_map { |i| i * 2 if i.even? }.first(5)
#=> [4, 8, 12, 16, 20]

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

Creates a new Socket::Option object for IP_MULTICAST_LOOP.

The size is dependent on the platform.

sockopt = Socket::Option.int(:INET, :IPPROTO_IP, :IP_MULTICAST_LOOP, 1)
p sockopt.int => 1

p Socket::Option.ipv4_multicast_loop(10)
#=> #<Socket::Option: INET IP MULTICAST_LOOP 10>

Returns the ipv4_multicast_loop data in sockopt as an integer.

sockopt = Socket::Option.ipv4_multicast_loop(10)
p sockopt.ipv4_multicast_loop => 10

Sets the encoding to be used for the response body; returns the encoding.

The given value may be:

See Encoding.

Examples:

http = Net::HTTP.new(hostname)
http.response_body_encoding = Encoding::US_ASCII # => #<Encoding:US-ASCII>
http.response_body_encoding = 'US-ASCII'         # => "US-ASCII"
http.response_body_encoding = 'ASCII'            # => "ASCII"

Sets the encoding to be used for the response body; returns the encoding.

The given value may be:

See Encoding.

Examples:

http = Net::HTTP.new(hostname)
http.response_body_encoding = Encoding::US_ASCII # => #<Encoding:US-ASCII>
http.response_body_encoding = 'US-ASCII'         # => "US-ASCII"
http.response_body_encoding = 'ASCII'            # => "ASCII"

Waits up to the continue timeout for a response from the server provided we’re speaking HTTP 1.1 and are expecting a 100-continue response.

Save the operator_loc location using the given saved source so that it can be retrieved later.

Save the operator_loc location using the given saved source so that it can be retrieved later.

Save the operator_loc location using the given saved source so that it can be retrieved later.

Save the operator_loc location using the given saved source so that it can be retrieved later.

Save the operator_loc location using the given saved source so that it can be retrieved later.

Save the operator_loc location using the given saved source so that it can be retrieved later.

Save the operator_loc location using the given saved source so that it can be retrieved later.

Save the operator_loc location using the given saved source so that it can be retrieved later.

Save the operator_loc location using the given saved source so that it can be retrieved later.

Save the operator_loc location using the given saved source so that it can be retrieved later.

Delegates to the end_character_column of the associated location object.

Save the operator_loc location using the given saved source so that it can be retrieved later.

Save the operator_loc location using the given saved source so that it can be retrieved later.

def contains_multiple_splats?: () -> bool

Search took: 5ms  ·  Total Results: 6041