Class: LibRubyParser::Nodes::Preexe
- Inherits:
-
LibRubyParser::Node
- Object
- LibRubyParser::Node
- LibRubyParser::Nodes::Preexe
- Defined in:
- lib/lib-ruby-parser/nodes.rb
Overview
Represents BEGIN { ... }
statement
Instance Attribute Summary collapse
-
#begin_l ⇒ Loc
readonly
Location of the open parenthesis.
-
#body ⇒ Node?
readonly
Body of the block.
-
#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
BEGIN
keyword.
Instance Attribute Details
#begin_l ⇒ Loc (readonly)
Location of the open parenthesis
BEGIN { 42 }
~
3320 3321 3322 |
# File 'lib/lib-ruby-parser/nodes.rb', line 3320 def begin_l @begin_l end |
#body ⇒ Node? (readonly)
Body of the block
3302 3303 3304 |
# File 'lib/lib-ruby-parser/nodes.rb', line 3302 def body @body end |
#end_l ⇒ Loc (readonly)
Location of the closing parenthesis
BEGIN { 42 }
~
3329 3330 3331 |
# File 'lib/lib-ruby-parser/nodes.rb', line 3329 def end_l @end_l end |
#expression_l ⇒ Loc (readonly)
Location of the full expression
BEGIN { 42 }
~~~~~~~~~~~~
3338 3339 3340 |
# File 'lib/lib-ruby-parser/nodes.rb', line 3338 def expression_l @expression_l end |
#keyword_l ⇒ Loc (readonly)
Location of the BEGIN
keyword
BEGIN { 42 }
~~~~~
3311 3312 3313 |
# File 'lib/lib-ruby-parser/nodes.rb', line 3311 def keyword_l @keyword_l end |