Module: Kind::Callable

Extended by:
Callable, Object
Included in:
Callable
Defined in:
lib/kind/objects/modules/custom/callable.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/callable.rb', line 11

def ===(value)
  value.respond_to?(:call)
end

#kindObject

Raises:

  • (NotImplementedError)


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

def kind; raise NotImplementedError; end

#nameObject



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

def name; 'Callable'; end