Class: MilkTea::AST::IndexAccess
- Inherits:
-
Data
- Object
- Data
- MilkTea::AST::IndexAccess
- Defined in:
- lib/milk_tea/core/ast.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#index ⇒ Object
readonly
Returns the value of attribute index.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#receiver ⇒ Object
readonly
Returns the value of attribute receiver.
Instance Method Summary collapse
-
#initialize(receiver:, index:, line: nil, column: nil) ⇒ IndexAccess
constructor
A new instance of IndexAccess.
Constructor Details
#initialize(receiver:, index:, line: nil, column: nil) ⇒ IndexAccess
Returns a new instance of IndexAccess.
238 |
# File 'lib/milk_tea/core/ast.rb', line 238 def initialize(receiver:, index:, line: nil, column: nil) = super |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column
237 238 239 |
# File 'lib/milk_tea/core/ast.rb', line 237 def column @column end |
#index ⇒ Object (readonly)
Returns the value of attribute index
237 238 239 |
# File 'lib/milk_tea/core/ast.rb', line 237 def index @index end |
#line ⇒ Object (readonly)
Returns the value of attribute line
237 238 239 |
# File 'lib/milk_tea/core/ast.rb', line 237 def line @line end |
#receiver ⇒ Object (readonly)
Returns the value of attribute receiver
237 238 239 |
# File 'lib/milk_tea/core/ast.rb', line 237 def receiver @receiver end |