Results for: "match"

The iterator version of the TSort.tsort method.

The graph is represented by each_node and each_child. each_node should have call method which yields for each node in the graph. each_child should have call method which takes a node argument and yields for each child node.

g = {1=>[2, 3], 2=>[4], 3=>[2, 4], 4=>[]}
each_node = lambda {|&b| g.each_key(&b) }
each_child = lambda {|n, &b| g[n].each(&b) }
TSort.tsort_each(each_node, each_child) {|n| p n }
#=> 4
#   2
#   3
#   1

Returns a Process::Status object representing the most recently exited child process in the current thread, or nil if none:

Process.spawn('ruby', '-e', 'exit 13')
Process.wait
Process.last_status # => #<Process::Status: pid 14396 exit 13>

Process.spawn('ruby', '-e', 'exit 14')
Process.wait
Process.last_status # => #<Process::Status: pid 4692 exit 14>

Process.spawn('ruby', '-e', 'exit 15')
# 'exit 15' has not been reaped by #wait.
Process.last_status # => #<Process::Status: pid 4692 exit 14>
Process.wait
Process.last_status # => #<Process::Status: pid 1380 exit 15>
No documentation available
No documentation available
No documentation available

foo => bar | baz

^^^^^^^^^
No documentation available
No documentation available
No documentation available
No documentation available

Example:

Foo::Bar += 1
   ^^^^^^^^

Compile a ConstantPathOperatorWriteNode node

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

Inspect a ConstantPathOperatorWriteNode node.

Copy a ConstantPathOperatorWriteNode node

Returns AST nodes under this one. Each kind of node has different children, depending on what kind of node it is.

The returned array may contain other nodes or nil.

Returns location objects associated with the AST node. The returned array contains RubyVM::AbstractSyntaxTree::Location.

Calls the given block once for each element in self, passing that element as parameter asn1. If no block is given, an enumerator is returned instead.

Example

asn1_ary.each do |asn1|
  puts asn1
end
No documentation available

Creates a new DH instance from scratch by generating random parameters and a key pair.

See also OpenSSL::PKey.generate_parameters and OpenSSL::PKey.generate_key.

size

The desired key size in bits.

generator

The generator.

Indicates whether this DH instance has a private key associated with it or not. The private key may be retrieved with DH#priv_key.

Creates a new DSA instance by generating a private/public key pair from scratch.

See also OpenSSL::PKey.generate_parameters and OpenSSL::PKey.generate_key.

size

The desired key size in bits.

Indicates whether this DSA instance has a private key associated with it or not. The private key may be retrieved with DSA#private_key.

Creates a new EC instance with a new random private and public key.

Returns whether this EC instance has a private key. The private key (BN) can be retrieved with EC#private_key.

Search took: 2ms  ·  Total Results: 2754