class OnebusawaySDK::Internal::Type::Boolean

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