Class: BusScheme::Primitive
Instance Attribute Summary
Attributes inherited from Lambda
Attributes inherited from Cons
Instance Method Summary collapse
- #call(*args) ⇒ Object
-
#initialize(body) ⇒ Primitive
constructor
A new instance of Primitive.
Methods inherited from Lambda
Methods inherited from Cons
#==, #each, #empty?, #inspect, #last, #length, #map, #to_a, #to_list
Methods included from Callable
Constructor Details
#initialize(body) ⇒ Primitive
Returns a new instance of Primitive.
47 48 49 50 |
# File 'lib/lambda.rb', line 47 def initialize body @car = @cdr = nil # avoid "Not initialized" warnings @body = body end |