Class: LibRubyParser::Nodes::Break
- Inherits:
-
LibRubyParser::Node
- Object
- LibRubyParser::Node
- LibRubyParser::Nodes::Break
- Defined in:
- lib/lib-ruby-parser/nodes.rb
Overview
Represents a break
keyword (with optional argument)
Instance Attribute Summary collapse
-
#args ⇒ ::Array<Node>
readonly
A list of arguments.
-
#expression_l ⇒ Loc
readonly
Location of the full expression.
-
#keyword_l ⇒ Loc
readonly
Location of the
break
keyword.
Instance Attribute Details
#args ⇒ ::Array<Node> (readonly)
A list of arguments
471 472 473 |
# File 'lib/lib-ruby-parser/nodes.rb', line 471 def args @args end |
#expression_l ⇒ Loc (readonly)
Location of the full expression
break(:foo)
~~~~~~~~~~~
489 490 491 |
# File 'lib/lib-ruby-parser/nodes.rb', line 489 def expression_l @expression_l end |
#keyword_l ⇒ Loc (readonly)
Location of the break
keyword
break :foo
~~~~~
480 481 482 |
# File 'lib/lib-ruby-parser/nodes.rb', line 480 def keyword_l @keyword_l end |