Class: Melbourne::AST::ArrayLiteral
- Defined in:
- lib/melbourne/ast/literals.rb
Overview
An array literal as in:
[1, 2]
Instance Attribute Summary collapse
-
#body ⇒ Object
The body os the array literal (the actual values contained in the array).
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(line, array) ⇒ ArrayLiteral
constructor
A new instance of ArrayLiteral.
Methods inherited from Node
Constructor Details
#initialize(line, array) ⇒ ArrayLiteral
Returns a new instance of ArrayLiteral.
15 16 17 18 |
# File 'lib/melbourne/ast/literals.rb', line 15 def initialize(line, array) @line = line @body = array end |
Instance Attribute Details
#body ⇒ Object
The body os the array literal (the actual values contained in the array)
13 14 15 |
# File 'lib/melbourne/ast/literals.rb', line 13 def body @body end |