Class: LibRubyParser::Nodes::Index
- Inherits:
-
LibRubyParser::Node
- Object
- LibRubyParser::Node
- LibRubyParser::Nodes::Index
- Defined in:
- lib/lib-ruby-parser/nodes.rb
Overview
Represents indexing operation (i.e. foo[1,2,3]
)
Instance Attribute Summary collapse
-
#begin_l ⇒ Loc
readonly
Location of open bracket.
-
#end_l ⇒ Loc
readonly
Location of closing bracket.
-
#expression_l ⇒ Loc
readonly
Location of the full expression.
-
#indexes ⇒ ::Array<Node>
readonly
A list of indexes.
-
#recv ⇒ Node
readonly
Receiver of indexing.
Instance Attribute Details
#begin_l ⇒ Loc (readonly)
Location of open bracket
foo[1, 2, 3]
~
2010 2011 2012 |
# File 'lib/lib-ruby-parser/nodes.rb', line 2010 def begin_l @begin_l end |
#end_l ⇒ Loc (readonly)
Location of closing bracket
foo[1, 2, 3]
~
2019 2020 2021 |
# File 'lib/lib-ruby-parser/nodes.rb', line 2019 def end_l @end_l end |
#expression_l ⇒ Loc (readonly)
Location of the full expression
foo[1, 2, 3]
~~~~~~~~~~~~
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
2001 2002 2003 |
# File 'lib/lib-ruby-parser/nodes.rb', line 2001 def indexes @indexes end |
#recv ⇒ Node (readonly)
Receiver of indexing
1997 1998 1999 |
# File 'lib/lib-ruby-parser/nodes.rb', line 1997 def recv @recv end |