Class: IV::Phonic::AST::ArrayLiteral
- Inherits:
-
Literal
- Object
- Node
- Expression
- Literal
- IV::Phonic::AST::ArrayLiteral
- Defined in:
- lib/iv/phonic/ast.rb
Instance Method Summary collapse
-
#initialize(parent, expr) ⇒ ArrayLiteral
constructor
A new instance of ArrayLiteral.
Methods inherited from Expression
Methods inherited from Node
#begin_position, #end_position, #program, #source
Constructor Details
#initialize(parent, expr) ⇒ ArrayLiteral
Returns a new instance of ArrayLiteral.
417 418 419 420 |
# File 'lib/iv/phonic/ast.rb', line 417 def initialize parent, expr super parent, expr @value = expr[:value].map{|item| Expression.as self, item } end |