Module: Kind::Object
- Includes:
- BasicObject, Maybe::Buildable, UnionType::Buildable
- Included in:
- Array, Boolean, Callable, Class, Comparable, Enumerable, Enumerator, File, Float, Hash, IO, Integer, Lambda, Method, Module, Numeric, Instance, OpenStruct, Proc, Queue, Range, Regexp, Set, String, Struct, Symbol, Time
- Defined in:
- lib/kind/objects/object.rb
Defined Under Namespace
Classes: Instance
Instance Method Summary
collapse
#|
#maybe
#[], #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
|
19
20
21
|
# File 'lib/kind/objects/object.rb', line 19
def inspect
"Kind::Object<#{name}>"
end
|
11
12
13
|
# File 'lib/kind/objects/object.rb', line 11
def name
kind.name
end
|