Class: Delivered::BooleanType
- Inherits:
-
Object
- Object
- Delivered::BooleanType
- Defined in:
- lib/delivered/types.rb
Instance Method Summary collapse
- #===(value) ⇒ Object
-
#initialize ⇒ BooleanType
constructor
A new instance of BooleanType.
- #inspect ⇒ Object
Constructor Details
#initialize ⇒ BooleanType
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 |
#inspect ⇒ Object
45 |
# File 'lib/delivered/types.rb', line 45 def inspect = 'Boolean' |