Class: Faust2Ruby::AST::Definition
Overview
Definition: name = expression;
Instance Attribute Summary collapse
-
#expression ⇒ Object
readonly
Returns the value of attribute expression.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(name, expression, params: [], **opts) ⇒ Definition
constructor
A new instance of Definition.
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
#expression ⇒ Object (readonly)
Returns the value of attribute expression.
50 51 52 |
# File 'lib/faust2ruby/ast.rb', line 50 def expression @expression end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
50 51 52 |
# File 'lib/faust2ruby/ast.rb', line 50 def name @name end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
50 51 52 |
# File 'lib/faust2ruby/ast.rb', line 50 def params @params end |