Module: Kind::Object

Defined Under Namespace

Classes: Instance

Instance Method Summary collapse

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



15
16
17
# File 'lib/kind/objects/object.rb', line 15

def ===(value)
  kind === value
end

#inspectObject



19
20
21
# File 'lib/kind/objects/object.rb', line 19

def inspect
  "Kind::Object<#{name}>"
end

#nameObject



11
12
13
# File 'lib/kind/objects/object.rb', line 11

def name
  kind.name
end