Class: Faust2Ruby::AST::With

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

Overview

With clause: expr with { defs }

Instance Attribute Summary collapse

Attributes inherited from Node

#column, #line

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of With.



184
185
186
187
188
# File 'lib/faust2ruby/ast.rb', line 184

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

Instance Attribute Details

#definitionsObject (readonly)

Returns the value of attribute definitions.



182
183
184
# File 'lib/faust2ruby/ast.rb', line 182

def definitions
  @definitions
end

#expressionObject (readonly)

Returns the value of attribute expression.



182
183
184
# File 'lib/faust2ruby/ast.rb', line 182

def expression
  @expression
end