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

Methods included from UnionType::Buildable

#|

Methods included from Maybe::Buildable

#maybe

Methods included from BasicObject

#[], #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

#kindObject



7
# File 'lib/kind/objects/modules/custom/lambda.rb', line 7

def kind; ::Proc; end

#nameObject



9
# File 'lib/kind/objects/modules/custom/lambda.rb', line 9

def name; 'Lambda'; end