Class: Faust2Ruby::AST::Access
Overview
Access with brackets: expr
Instance Attribute Summary collapse
-
#index ⇒ Object
readonly
Returns the value of attribute index.
-
#operand ⇒ Object
readonly
Returns the value of attribute operand.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(operand, index, **opts) ⇒ Access
constructor
A new instance of Access.
Constructor Details
#initialize(operand, index, **opts) ⇒ Access
Returns a new instance of Access.
264 265 266 267 268 |
# File 'lib/faust2ruby/ast.rb', line 264 def initialize(operand, index, **opts) super(**opts) @operand = operand @index = index end |
Instance Attribute Details
#index ⇒ Object (readonly)
Returns the value of attribute index.
262 263 264 |
# File 'lib/faust2ruby/ast.rb', line 262 def index @index end |
#operand ⇒ Object (readonly)
Returns the value of attribute operand.
262 263 264 |
# File 'lib/faust2ruby/ast.rb', line 262 def operand @operand end |