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

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/boolean.rb', line 11

def ===(value)
  ::TrueClass === value || ::FalseClass === value
end

#kindObject



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

def kind; [TrueClass, FalseClass]; end

#nameObject



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

def name; 'Boolean'; end