Sha256: 645a6047282d46d90d558009a0b85a4d67326ed497fd9e0295604e17c07ea00a

Contents?: true

Size: 206 Bytes

Versions: 70

Compression:

Stored size: 206 Bytes

Contents

# frozen_string_literal: true

class ReeI18n::SetLocale
  include Ree::FnDSL

  fn :set_locale

  contract(Symbol => Symbol).throws(I18n::InvalidLocale)
  def call(locale)
    I18n.locale = locale
  end
end

Version data entries

70 entries across 70 versions & 1 rubygems

Version Path
ree_lib-1.0.9 lib/ree_lib/packages/ree_i18n/package/ree_i18n/functions/set_locale.rb
ree_lib-1.0.8 lib/ree_lib/packages/ree_i18n/package/ree_i18n/functions/set_locale.rb
ree_lib-1.0.7 lib/ree_lib/packages/ree_i18n/package/ree_i18n/functions/set_locale.rb
ree_lib-1.0.6 lib/ree_lib/packages/ree_i18n/package/ree_i18n/functions/set_locale.rb
ree_lib-1.0.5 lib/ree_lib/packages/ree_i18n/package/ree_i18n/functions/set_locale.rb
ree_lib-1.0.4 lib/ree_lib/packages/ree_i18n/package/ree_i18n/functions/set_locale.rb
ree_lib-1.0.3 lib/ree_lib/packages/ree_i18n/package/ree_i18n/functions/set_locale.rb
ree_lib-1.0.2 lib/ree_lib/packages/ree_i18n/package/ree_i18n/functions/set_locale.rb
ree_lib-1.0.1 lib/ree_lib/packages/ree_i18n/package/ree_i18n/functions/set_locale.rb
ree_lib-1.0.0 lib/ree_lib/packages/ree_i18n/package/ree_i18n/functions/set_locale.rb