Represents the use of ‘**nil` inside method arguments.
def a(**nil) ^^^^^ end
Represents an implicit set of parameters through the use of numbered parameters within a block or lambda.
-> { _1 + _2 } ^^^^^^^^^^^^^^
Represents the use of the ‘||` operator or the `or` keyword.
left or right ^^^^^^^^^^^^^
Represents the list of parameters on a method, block, or lambda definition.
def a(b, c, d) ^^^^^^^ end
The top level node of any parse tree.
Represents the use of the ‘..` or `…` operators.
1..2 ^^^^ c if a =~ /left/ ... b =~ /right/ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Represents a required keyword parameter to a method, block, or lambda definition.
def a(b: ) ^^ end
Represents a required parameter to a method, block, or lambda definition.
def a(b) ^ end
Represents a rescue statement.
begin rescue Foo, *splat, Bar => ex foo ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ end
‘Foo, *splat, Bar` are in the `exceptions` field. `ex` is in the `exception` field.
Represents a rest parameter to a method, block, or lambda definition.
def a(*b) ^^ end
Represents a set of statements contained within some scope.
foo; bar; baz ^^^^^^^^^^^^^
Represents a string literal, a string contained within a ‘%w` list, or plain string content within an interpolated string.
"foo" ^^^^^ %w[foo] ^^^ "foo #{bar} baz" ^^^^ ^^^^
Represents the use of the ‘super` keyword with parentheses or arguments.
super() ^^^^^^^ super foo, bar ^^^^^^^^^^^^^^
Represents a symbol literal or a symbol contained within a ‘%i` list.
:foo ^^^^ %i[foo] ^^^
Represents the use of the ‘when` keyword within a case statement.
case true when true ^^^^^^^^^ end