# File lib/active_support/vendor/i18n-0.4.1/i18n/backend/cldr.rb, line 48 def detect_type(object, options) options.has_key?(:currency) ? :currency : case object when ::Numeric :decimal when ::Date, ::DateTime, ::Time object.class.name.downcase.to_sym else raise_unspecified_format_type! end end