class Estreet::Program

Public Class Methods

new(body) click to toggle source
# File lib/estreet/program.rb, line 3
def initialize(body)
  @body = Array(body).map {|s| s.to_statement }
end

Public Instance Methods

attributes() click to toggle source
Calls superclass method Estreet::Node#attributes
# File lib/estreet/program.rb, line 7
def attributes
  super.merge(body: @body)
end