Class: LibRubyParser::Nodes::Array

Inherits:
LibRubyParser::Node show all
Defined in:
lib/lib-ruby-parser/nodes.rb

Overview

Represents an array literal

Instance Attribute Summary collapse

Instance Attribute Details

#begin_lLoc? (readonly)

Location of the open bracket

[1, 2, 3]
~

Returns:



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

Returns:



174
175
176
# File 'lib/lib-ruby-parser/nodes.rb', line 174

def elements
  @elements
end

#end_lLoc? (readonly)

Location of the closing bracket

[1, 2, 3]
        ~

Returns:



192
193
194
# File 'lib/lib-ruby-parser/nodes.rb', line 192

def end_l
  @end_l
end

#expression_lLoc (readonly)

Location of the full expression

[1, 2, 3]
~~~~~~~~~

Returns:



201
202
203
# File 'lib/lib-ruby-parser/nodes.rb', line 201

def expression_l
  @expression_l
end