class OnebusawaySDK::Internal::Type::Boolean
Ruby has no Boolean class; this is something for models to refer to.
@abstract
@api private
def self.==(other) = other.is_a?(Class) && other <= OnebusawaySDK::Internal::Type::Boolean
-
(Boolean)
-
Parameters:
-
other
(Object
) --
Other tags:
- Api: - public
def self.==(other) = other.is_a?(Class) && other <= OnebusawaySDK::Internal::Type::Boolean
def self.===(other) = other == true || other == false
-
(Boolean)
-
Parameters:
-
other
(Object
) --
Other tags:
- Api: - public
def self.===(other) = other == true || other == false
def coerce(value, state:)
-
(Boolean, Object)
-
Options Hash:
(**state)
-
:branched
(Integer
) -- -
:error
(Class
) -- -
:exactness
(Hash{Symbol=>Object}
) -- -
:strictness
(Boolean
) -- -
:translate_names
(Boolean
) --
Parameters:
-
state
(Hash{Symbol=>Object}
) -- . -
value
(Boolean, Object
) --
Other tags:
- Api: - private
def coerce(value, state:) state.fetch(:exactness)[value == true || value == false ? :yes : :no] += 1 value end
def to_sorbet_type
-
(Object)
-
Other tags:
- Api: - private
def to_sorbet_type T::Boolean end