Foo::Bar ^^^^^^^^
-> { it } ^^^^^^^^^
-> { _1 + _2 } ^^^^^^^^^^^^^^
def foo(*bar); end
^^^^
def foo(*); end
^
A block’s parameters.
Foo::Bar ^^^^^^^^
-> { _1 + _2 } ^^^^^^^^^^^^^^
def foo(*bar); end
^^^^
def foo(*); end
^
Negate the value of a numeric node. This is a special case where you have a negative sign on one line and then a number on the next line. In normal Ruby, this will always be a method call. The parser gem, however, marks this as a numeric literal. We have to massage the tree here to get it into the correct form.
Parse a float from the string representation.
Like Enumerable#compact
, but chains operation to be lazy-evaluated.
Update the digest using given string and return self
.
Update the digest using a given string and return self.
Create a new closure. If a block is given, the created closure is automatically freed after the given block is executed.
The all given arguments are passed to Fiddle::Closure.new
. So using this method without block equals to Fiddle::Closure.new
.
Fiddle::Closure.create(TYPE_INT, [TYPE_INT]) do |closure| # closure is freed automatically when this block is finished. end
Wakes up the first thread in line waiting for this lock.
Performs a Miller-Rabin probabilistic primality test for bn
.
checks
parameter is deprecated in version 3.0. It has no effect.