Class: RLSL::Prism::IR::ArrayLiteral
- Defined in:
- lib/rlsl/prism/ir/expressions.rb
Instance Attribute Summary collapse
-
#elements ⇒ Object
readonly
Returns the value of attribute elements.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(elements, type = nil) ⇒ ArrayLiteral
constructor
A new instance of ArrayLiteral.
Methods inherited from Node
Constructor Details
#initialize(elements, type = nil) ⇒ ArrayLiteral
Returns a new instance of ArrayLiteral.
176 177 178 179 180 |
# File 'lib/rlsl/prism/ir/expressions.rb', line 176 def initialize(elements, type = nil) super() @elements = elements @type = type end |
Instance Attribute Details
#elements ⇒ Object (readonly)
Returns the value of attribute elements.
172 173 174 |
# File 'lib/rlsl/prism/ir/expressions.rb', line 172 def elements @elements end |