module OnebusawaySDK::Internal::Util

def coerce_boolean!(input)

Returns:
  • (Boolean, nil) -

Raises:
  • (ArgumentError) -

Parameters:
  • input (String, Boolean) --

Other tags:
    Api: - private
def coerce_boolean!(input)
  case coerce_boolean(input)
  in true | false | nil => coerced
    coerced
  else
    raise ArgumentError.new("Unable to coerce #{input.inspect} into boolean value")
  end
end