Exception: I18n::InvalidLocale

Inherits:
ArgumentError show all
Defined in:
lib/i18n/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(locale) ⇒ InvalidLocale

Returns a new instance of InvalidLocale.



34
35
36
37
# File 'lib/i18n/exceptions.rb', line 34

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.



33
34
35
# File 'lib/i18n/exceptions.rb', line 33

def locale
  @locale
end