instance method formatter

Ruby on Rails 2.3.18

Since v2.3.18 Last seen in v2.3.18

Signature

formatter(locale, type, format)

No documentation comment.

Parameters

locale req
type req
format req
Source
# File activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/backend/cldr.rb, line 59
        def formatter(locale, type, format)
          (@formatters ||= {})[:"#{locale}.#{type}.#{format}"] ||= begin
            format = lookup_format(locale, type, format)
            data   = lookup_format_data(locale, type)
            ::Cldr::Format.const_get(type.to_s.camelize).new(format, data)
          end
        end

Defined in activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/backend/cldr.rb line 59 · View on GitHub · Improve this page · Find usages on GitHub

Defined in I18n::Backend::Cldr

Type at least 2 characters to search.

↑↓ navigate · open · esc close