Class: IV::Phonic::AST::ForInStatement
- Defined in:
- lib/iv/phonic/ast.rb
Instance Method Summary collapse
-
#initialize(parent, stmt) ⇒ ForInStatement
constructor
A new instance of ForInStatement.
Methods inherited from Statement
Methods inherited from Node
#begin_position, #end_position, #program, #source
Constructor Details
#initialize(parent, stmt) ⇒ ForInStatement
Returns a new instance of ForInStatement.
185 186 187 188 189 190 |
# File 'lib/iv/phonic/ast.rb', line 185 def initialize parent, stmt super parent, stmt @each = Statement.as self, stmt[:each] @enum = Expression.as self, stmt[:enum] @body = Statement.as self, stmt[:body] end |