Class: Estreet::Program
Instance Attribute Summary
Attributes inherited from Node
Instance Method Summary collapse
- #attributes ⇒ Object
-
#initialize(body) ⇒ Program
constructor
A new instance of Program.
Methods inherited from Node
Constructor Details
#initialize(body) ⇒ Program
Returns a new instance of Program.
3 4 5 |
# File 'lib/estreet/program.rb', line 3 def initialize(body) @body = Array(body).map {|s| s.to_statement } end |
Instance Method Details
#attributes ⇒ Object
7 8 9 |
# File 'lib/estreet/program.rb', line 7 def attributes super.merge(body: @body) end |