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

Returns:
  • (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

Returns:
  • (Boolean) -

Parameters:
  • other (Object) --

Other tags:
    Api: - public
def self.===(other) = other == true || other == false

def coerce(value, state:)

Returns:
  • (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

Returns:
  • (Object) -

Other tags:
    Api: - private
def to_sorbet_type
  T::Boolean
end