Class: Philosophal::Types::BooleanType

Inherits:
Object
  • Object
show all
Defined in:
lib/philosophal/types/boolean_type.rb

Constant Summary collapse

Instance =
new.freeze
TRUE_FALSE_SET =
Set[true, false]

Instance Method Summary collapse

Instance Method Details

#===(value) ⇒ Object



10
11
12
# File 'lib/philosophal/types/boolean_type.rb', line 10

def ===(value)
  TRUE_FALSE_SET.include?(value)
end