Class: IV::Phonic::AST::WithStatement
- Defined in:
- lib/iv/phonic/ast.rb
Instance Method Summary collapse
-
#initialize(parent, stmt) ⇒ WithStatement
constructor
A new instance of WithStatement.
Methods inherited from Statement
Methods inherited from Node
#begin_position, #end_position, #program, #source
Constructor Details
#initialize(parent, stmt) ⇒ WithStatement
Returns a new instance of WithStatement.
227 228 229 230 231 |
# File 'lib/iv/phonic/ast.rb', line 227 def initialize parent, stmt super parent, stmt @context = Expression.as self, stmt[:context] @body = Statement.as self, stmt[:body] end |