Class: Faust2Ruby::AST::Definition

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

Overview

Definition: name = expression;

Instance Attribute Summary collapse

Attributes inherited from Node

#column, #line

Instance Method Summary collapse

Constructor Details

#initialize(name, expression, params: [], **opts) ⇒ Definition

Returns a new instance of Definition.



52
53
54
55
56
57
# File 'lib/faust2ruby/ast.rb', line 52

def initialize(name, expression, params: [], **opts)
  super(**opts)
  @name = name
  @params = params
  @expression = expression
end

Instance Attribute Details

#expressionObject (readonly)

Returns the value of attribute expression.



50
51
52
# File 'lib/faust2ruby/ast.rb', line 50

def expression
  @expression
end

#nameObject (readonly)

Returns the value of attribute name.



50
51
52
# File 'lib/faust2ruby/ast.rb', line 50

def name
  @name
end

#paramsObject (readonly)

Returns the value of attribute params.



50
51
52
# File 'lib/faust2ruby/ast.rb', line 50

def params
  @params
end