Class: LibRubyParser::Nodes::Index

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

Overview

Represents indexing operation (i.e. foo[1,2,3])

Instance Attribute Summary collapse

Instance Attribute Details

#begin_lLoc (readonly)

Location of open bracket

foo[1, 2, 3]
   ~

Returns:



2010
2011
2012
# File 'lib/lib-ruby-parser/nodes.rb', line 2010

def begin_l
  @begin_l
end

#end_lLoc (readonly)

Location of closing bracket

foo[1, 2, 3]
           ~

Returns:



2019
2020
2021
# File 'lib/lib-ruby-parser/nodes.rb', line 2019

def end_l
  @end_l
end

#expression_lLoc (readonly)

Location of the full expression

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

Returns:



2028
2029
2030
# File 'lib/lib-ruby-parser/nodes.rb', line 2028

def expression_l
  @expression_l
end

#indexes::Array<Node> (readonly)

A list of indexes

Returns:



2001
2002
2003
# File 'lib/lib-ruby-parser/nodes.rb', line 2001

def indexes
  @indexes
end

#recvNode (readonly)

Receiver of indexing

Returns:



1997
1998
1999
# File 'lib/lib-ruby-parser/nodes.rb', line 1997

def recv
  @recv
end