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.70 lib/ree_lib/packages/ree_i18n/package/ree_i18n/functions/set_locale.rb
ree_lib-1.0.69 lib/ree_lib/packages/ree_i18n/package/ree_i18n/functions/set_locale.rb
ree_lib-1.0.68 lib/ree_lib/packages/ree_i18n/package/ree_i18n/functions/set_locale.rb
ree_lib-1.0.67 lib/ree_lib/packages/ree_i18n/package/ree_i18n/functions/set_locale.rb
ree_lib-1.0.66 lib/ree_lib/packages/ree_i18n/package/ree_i18n/functions/set_locale.rb
ree_lib-1.0.65 lib/ree_lib/packages/ree_i18n/package/ree_i18n/functions/set_locale.rb
ree_lib-1.0.64 lib/ree_lib/packages/ree_i18n/package/ree_i18n/functions/set_locale.rb
ree_lib-1.0.63 lib/ree_lib/packages/ree_i18n/package/ree_i18n/functions/set_locale.rb
ree_lib-1.0.62 lib/ree_lib/packages/ree_i18n/package/ree_i18n/functions/set_locale.rb
ree_lib-1.0.61 lib/ree_lib/packages/ree_i18n/package/ree_i18n/functions/set_locale.rb
ree_lib-1.0.60 lib/ree_lib/packages/ree_i18n/package/ree_i18n/functions/set_locale.rb
ree_lib-1.0.59 lib/ree_lib/packages/ree_i18n/package/ree_i18n/functions/set_locale.rb
ree_lib-1.0.58 lib/ree_lib/packages/ree_i18n/package/ree_i18n/functions/set_locale.rb
ree_lib-1.0.57 lib/ree_lib/packages/ree_i18n/package/ree_i18n/functions/set_locale.rb
ree_lib-1.0.56 lib/ree_lib/packages/ree_i18n/package/ree_i18n/functions/set_locale.rb
ree_lib-1.0.55 lib/ree_lib/packages/ree_i18n/package/ree_i18n/functions/set_locale.rb
ree_lib-1.0.54 lib/ree_lib/packages/ree_i18n/package/ree_i18n/functions/set_locale.rb
ree_lib-1.0.53 lib/ree_lib/packages/ree_i18n/package/ree_i18n/functions/set_locale.rb
ree_lib-1.0.52 lib/ree_lib/packages/ree_i18n/package/ree_i18n/functions/set_locale.rb
ree_lib-1.0.51 lib/ree_lib/packages/ree_i18n/package/ree_i18n/functions/set_locale.rb