Results for: "OptionParser"

Authenticates a req and returns a 401 Unauthorized using res if the authentication was not correct.

Authenticates a req and returns a 401 Unauthorized using res if the authentication was not correct.

Registers a new timeout handler

time

Timeout in seconds

exception

Exception to raise when timeout elapsed

No documentation available

Returns the file name of this frame.

For example, using caller_locations.rb from Thread::Backtrace::Location

loc = c(0..1).first
loc.path #=> caller_locations.rb
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available

@macro action

@return [Array<Vertex>] the vertices of {#graph} where ‘self` is a

{#descendent?}

@return [Array<Vertex>] the vertices of {#graph} where ‘self` is an

{#ancestor?}

@return [Object] the requirement that led to ‘requirement` being added

to the list of requirements.

(see Gem::Resolver::Molinillo::SpecificationProvider#search_for)

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.

Search took: 7ms  ·  Total Results: 4629