Class: Delivered::BooleanType

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

Instance Method Summary collapse

Constructor Details

#initializeBooleanType

Returns a new instance of BooleanType.



41
42
43
# File 'lib/delivered/types.rb', line 41

def initialize
  freeze
end

Instance Method Details

#===(value) ⇒ Object



47
48
49
# File 'lib/delivered/types.rb', line 47

def ===(value)
  [true, false].include?(value)
end

#inspectObject



45
# File 'lib/delivered/types.rb', line 45

def inspect = 'Boolean'