Class: IV::Phonic::AST::Block
- Defined in:
- lib/iv/phonic/ast.rb
Instance Method Summary collapse
-
#initialize(parent, stmt) ⇒ Block
constructor
A new instance of Block.
- #to_source(lv) ⇒ Object
Methods inherited from Statement
Methods inherited from Node
#begin_position, #end_position, #program, #source
Constructor Details
Instance Method Details
#to_source(lv) ⇒ Object
77 78 79 |
# File 'lib/iv/phonic/ast.rb', line 77 def to_source lv "{\n#{@body.map{|stmt| stmt.to_source lv }.join('\n')}\n}".indent(lv) end |