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