Module: Kind::Boolean
- Extended by:
- Boolean, Object
- Included in:
- Boolean
- Defined in:
- lib/kind/objects/modules/custom/boolean.rb
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/boolean.rb', line 11
def ===(value)
::TrueClass === value || ::FalseClass === value
end
|
7
|
# File 'lib/kind/objects/modules/custom/boolean.rb', line 7
def kind; [TrueClass, FalseClass]; end
|
9
|
# File 'lib/kind/objects/modules/custom/boolean.rb', line 9
def name; 'Boolean'; end
|