Sha256: 523427e74e2e38d0b1b1b33eb999469f68a0d94d0defb6b28386f666f7f1efbb

Contents?: true

Size: 519 Bytes

Versions: 14

Compression:

Stored size: 519 Bytes

Contents

# encoding: UTF-8

require 'money/locale_backend/errors'
require 'money/locale_backend/legacy'
require 'money/locale_backend/i18n'
require 'money/locale_backend/currency'

class Money
  module LocaleBackend
    BACKENDS = {
      legacy: Money::LocaleBackend::Legacy,
      i18n: Money::LocaleBackend::I18n,
      currency: Money::LocaleBackend::Currency
    }.freeze

    def self.find(name)
      raise Unknown, "Unknown locale backend: #{name}" unless BACKENDS.key?(name)

      BACKENDS[name].new
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
money-6.19.0 lib/money/money/locale_backend.rb
money-6.18.0 lib/money/money/locale_backend.rb
money-6.17.0 lib/money/money/locale_backend.rb
money-6.16.0 lib/money/money/locale_backend.rb
money-6.14.1 lib/money/money/locale_backend.rb
money-6.14.0 lib/money/money/locale_backend.rb
money-6.13.8 lib/money/money/locale_backend.rb
money-6.13.7 lib/money/money/locale_backend.rb
money-6.13.6 lib/money/money/locale_backend.rb
money-6.13.5 lib/money/money/locale_backend.rb
money-6.13.4 lib/money/money/locale_backend.rb
money-6.13.3 lib/money/money/locale_backend.rb
money-6.13.2 lib/money/money/locale_backend.rb
money-6.13.1 lib/money/money/locale_backend.rb