Foo::Bar &&= baz ^^^^^^^^^^^^^^^^
Foo::Bar ||= baz ^^^^^^^^^^^^^^^^
A block’s parameters.
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.
Because we have mutated the AST to allow for newlines in the middle of a rational, we need to manually handle the value here.
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.