Results for: "OptionParser"

Compile a KeywordRestParameterNode node

Compile a NoKeywordsParameterNode node

Compile a RequiredKeywordParameterNode node

Foo += bar

becomes

Foo = Foo + bar

Dispatch enter and leave events for ConstantOperatorWriteNode nodes and continue walking the tree.

Dispatch enter and leave events for ConstantPathTargetNode nodes and continue walking the tree.

Dispatch enter and leave events for KeywordRestParameterNode nodes and continue walking the tree.

Dispatch enter and leave events for NoKeywordsParameterNode nodes and continue walking the tree.

Dispatch enter and leave events for RequiredKeywordParameterNode nodes and continue walking the tree.

Copy a ConstantOperatorWriteNode node

Copy a ConstantPathTargetNode node

Copy a KeywordRestParameterNode node

Copy a NoKeywordsParameterNode node

Copy a RequiredKeywordParameterNode node

No documentation available

Returns the node id for the given backtrace location.

begin
  raise
rescue =>  e
  loc = e.backtrace_locations.first
  RubyVM::AbstractSyntaxTree.node_id_for_backtrace_location(loc)
end # => 0
No documentation available
No documentation available
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
No documentation available
Search took: 23ms  ·  Total Results: 5424