Class: Pangea::Internal::Type::Boolean Private
- Inherits:
-
Object
- Object
- Pangea::Internal::Type::Boolean
- Extended by:
- Converter
- Defined in:
- lib/pangea/internal/type/boolean.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
- .==(other) ⇒ Boolean private
- .===(other) ⇒ Boolean private
- .coerce(value, state:) ⇒ Boolean, Object private
Methods included from Converter
Class Method Details
.==(other) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
20 |
# File 'lib/pangea/internal/type/boolean.rb', line 20 def self.==(other) = other.is_a?(Class) && other <= Pangea::Internal::Type::Boolean |
.===(other) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
15 |
# File 'lib/pangea/internal/type/boolean.rb', line 15 def self.===(other) = other == true || other == false |
.coerce(value, state:) ⇒ Boolean, Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
36 37 38 39 |
# File 'lib/pangea/internal/type/boolean.rb', line 36 def coerce(value, state:) state.fetch(:exactness)[value == true || value == false ? :yes : :no] += 1 value end |