Module: Kind::Lambda
- Extended by:
- Lambda, Object
- Included in:
- Lambda
- Defined in:
- lib/kind/objects/modules/custom/lambda.rb
Instance Method Summary
collapse
Methods included from Object
inspect
#|
#maybe
#[], #or, #or_nil, #or_null, #or_undefined, #value, #value?
Instance Method Details
#===(value) ⇒ Object
11
12
13
|
# File 'lib/kind/objects/modules/custom/lambda.rb', line 11
def ===(value)
value.kind_of?(::Proc) && value.lambda?
end
|
7
|
# File 'lib/kind/objects/modules/custom/lambda.rb', line 7
def kind; ::Proc; end
|
9
|
# File 'lib/kind/objects/modules/custom/lambda.rb', line 9
def name; 'Lambda'; end
|