Class: RLSL::Prism::IR::ArrayIndex
- Defined in:
- lib/rlsl/prism/ir/expressions.rb
Instance Attribute Summary collapse
-
#array ⇒ Object
readonly
Returns the value of attribute array.
-
#index ⇒ Object
readonly
Returns the value of attribute index.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(array, index, type = nil) ⇒ ArrayIndex
constructor
A new instance of ArrayIndex.
Methods inherited from Node
Constructor Details
#initialize(array, index, type = nil) ⇒ ArrayIndex
Returns a new instance of ArrayIndex.
188 189 190 191 192 193 |
# File 'lib/rlsl/prism/ir/expressions.rb', line 188 def initialize(array, index, type = nil) super() @array = array @index = index @type = type end |
Instance Attribute Details
#array ⇒ Object (readonly)
Returns the value of attribute array.
184 185 186 |
# File 'lib/rlsl/prism/ir/expressions.rb', line 184 def array @array end |
#index ⇒ Object (readonly)
Returns the value of attribute index.
184 185 186 |
# File 'lib/rlsl/prism/ir/expressions.rb', line 184 def index @index end |