Class: LibRubyParser::Nodes::Array
- Inherits:
-
LibRubyParser::Node
- Object
- LibRubyParser::Node
- LibRubyParser::Nodes::Array
- Defined in:
- lib/lib-ruby-parser/nodes.rb
Overview
Represents an array literal
Instance Attribute Summary collapse
-
#begin_l ⇒ Loc?
readonly
Location of the open bracket.
-
#elements ⇒ ::Array<Node>
readonly
A list of elements.
-
#end_l ⇒ Loc?
readonly
Location of the closing bracket.
-
#expression_l ⇒ Loc
readonly
Location of the full expression.
Instance Attribute Details
#begin_l ⇒ Loc? (readonly)
Location of the open bracket
[1, 2, 3]
~
183 184 185 |
# File 'lib/lib-ruby-parser/nodes.rb', line 183 def begin_l @begin_l end |
#elements ⇒ ::Array<Node> (readonly)
A list of elements
174 175 176 |
# File 'lib/lib-ruby-parser/nodes.rb', line 174 def elements @elements end |
#end_l ⇒ Loc? (readonly)
Location of the closing bracket
[1, 2, 3]
~
192 193 194 |
# File 'lib/lib-ruby-parser/nodes.rb', line 192 def end_l @end_l end |
#expression_l ⇒ Loc (readonly)
Location of the full expression
[1, 2, 3]
~~~~~~~~~
201 202 203 |
# File 'lib/lib-ruby-parser/nodes.rb', line 201 def expression_l @expression_l end |