Class: IV::Phonic::AST::ObjectLiteral

Inherits:
Literal show all
Defined in:
lib/iv/phonic/ast.rb

Instance Method Summary collapse

Methods inherited from Expression

as

Methods inherited from Node

#begin_position, #end_position, #program, #source

Constructor Details

#initialize(parent, expr) ⇒ ObjectLiteral

Returns a new instance of ObjectLiteral.



430
431
432
433
# File 'lib/iv/phonic/ast.rb', line 430

def initialize parent, expr
  super parent, expr
  @value = expr[:value].map{|item| Property.as self, item }
end