Class: Faust2Ruby::AST::Program

Inherits:
Node
  • Object
show all
Defined in:
lib/faust2ruby/ast.rb

Overview

Complete Faust program

Instance Attribute Summary collapse

Attributes inherited from Node

#column, #line

Instance Method Summary collapse

Constructor Details

#initialize(statements, **opts) ⇒ Program

Returns a new instance of Program.



21
22
23
24
# File 'lib/faust2ruby/ast.rb', line 21

def initialize(statements, **opts)
  super(**opts)
  @statements = statements
end

Instance Attribute Details

#statementsObject (readonly)

Returns the value of attribute statements.



19
20
21
# File 'lib/faust2ruby/ast.rb', line 19

def statements
  @statements
end