Module: Kind::Callable
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/callable.rb', line 11
def ===(value)
value.respond_to?(:call)
end
|
7
|
# File 'lib/kind/objects/modules/custom/callable.rb', line 7
def kind; raise NotImplementedError; end
|
9
|
# File 'lib/kind/objects/modules/custom/callable.rb', line 9
def name; 'Callable'; end
|