Class: Faust2Ruby::AST::Lambda

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

Overview

Lambda: (x, y).(body)

Instance Attribute Summary collapse

Attributes inherited from Node

#column, #line

Instance Method Summary collapse

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

#bodyObject (readonly)

Returns the value of attribute body.



171
172
173
# File 'lib/faust2ruby/ast.rb', line 171

def body
  @body
end

#paramsObject (readonly)

Returns the value of attribute params.



171
172
173
# File 'lib/faust2ruby/ast.rb', line 171

def params
  @params
end