Class: LibRubyParser::Nodes::Yield
- Inherits:
-
LibRubyParser::Node
- Object
- LibRubyParser::Node
- LibRubyParser::Nodes::Yield
- Defined in:
- lib/lib-ruby-parser/nodes.rb
Overview
Represents an yield
keyword
Instance Attribute Summary collapse
-
#args ⇒ ::Array<Node>
readonly
A list of arguments given to
yield
. -
#begin_l ⇒ Loc?
readonly
Location of the open parenthesis.
-
#end_l ⇒ Loc?
readonly
Location of the closing parenthesis.
-
#expression_l ⇒ Loc
readonly
Location of the full expression.
-
#keyword_l ⇒ Loc
readonly
Location of the
yield
keyword.
Instance Attribute Details
#args ⇒ ::Array<Node> (readonly)
A list of arguments given to yield
4393 4394 4395 |
# File 'lib/lib-ruby-parser/nodes.rb', line 4393 def args @args end |
#begin_l ⇒ Loc? (readonly)
Location of the open parenthesis
yield(1, 2)
~
None
if there are no parentheses
4413 4414 4415 |
# File 'lib/lib-ruby-parser/nodes.rb', line 4413 def begin_l @begin_l end |
#end_l ⇒ Loc? (readonly)
Location of the closing parenthesis
yield(1, 2)
~
None
if there are no parentheses
4424 4425 4426 |
# File 'lib/lib-ruby-parser/nodes.rb', line 4424 def end_l @end_l end |
#expression_l ⇒ Loc (readonly)
Location of the full expression
yield(1, 2)
~~~~~~~~~~~
4433 4434 4435 |
# File 'lib/lib-ruby-parser/nodes.rb', line 4433 def expression_l @expression_l end |
#keyword_l ⇒ Loc (readonly)
Location of the yield
keyword
yield 1, 2
~~~~~
4402 4403 4404 |
# File 'lib/lib-ruby-parser/nodes.rb', line 4402 def keyword_l @keyword_l end |