Class: Faust2Ruby::AST::Letrec

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

Overview

Letrec clause: letrec { defs }

Instance Attribute Summary collapse

Attributes inherited from Node

#column, #line

Instance Method Summary collapse

Constructor Details

#initialize(definitions, expression, **opts) ⇒ Letrec

Returns a new instance of Letrec.



195
196
197
198
199
# File 'lib/faust2ruby/ast.rb', line 195

def initialize(definitions, expression, **opts)
  super(**opts)
  @definitions = definitions
  @expression = expression
end

Instance Attribute Details

#definitionsObject (readonly)

Returns the value of attribute definitions.



193
194
195
# File 'lib/faust2ruby/ast.rb', line 193

def definitions
  @definitions
end

#expressionObject (readonly)

Returns the value of attribute expression.



193
194
195
# File 'lib/faust2ruby/ast.rb', line 193

def expression
  @expression
end