# File lib/active_support/vendor/i18n-0.4.1/i18n/backend/cldr.rb, line 9 def localize(locale, object, format = :default, options = {}) options[:as] ||= detect_type(object, options) send("format_#{options[:as]}""format_#{options[:as]}", locale, object, format, options) end