Class: Faust2Ruby::AST::Lambda
Overview
Lambda: (x, y).(body)
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(params, body, **opts) ⇒ Lambda
constructor
A new instance of Lambda.
Constructor Details
#initialize(params, body, **opts) ⇒ Lambda
Returns a new instance of Lambda.
173 174 175 176 177 |
# File 'lib/faust2ruby/ast.rb', line 173 def initialize(params, body, **opts) super(**opts) @params = params @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
171 172 173 |
# File 'lib/faust2ruby/ast.rb', line 171 def body @body end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
171 172 173 |
# File 'lib/faust2ruby/ast.rb', line 171 def params @params end |