Exception: I18n::InvalidLocale

Inherits:
ArgumentError show all
Defined in:
lib/active_support/vendor/i18n-0.4.1/i18n/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(locale) ⇒ InvalidLocale

Returns a new instance of InvalidLocale.



14
15
16
17
# File 'lib/active_support/vendor/i18n-0.4.1/i18n/exceptions.rb', line 14

def initialize(locale)
  @locale = locale
  super "#{locale.inspect} is not a valid locale"
end

Instance Attribute Details

#localeObject (readonly)

Returns the value of attribute locale.



13
14
15
# File 'lib/active_support/vendor/i18n-0.4.1/i18n/exceptions.rb', line 13

def locale
  @locale
end