Exception: I18n::InvalidLocale
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- ArgumentError
- I18n::InvalidLocale
- Defined in:
- lib/i18n/exceptions.rb
Instance Attribute Summary (collapse)
-
- (Object) locale
readonly
Returns the value of attribute locale.
Instance Method Summary (collapse)
-
- (InvalidLocale) initialize(locale)
constructor
A new instance of InvalidLocale.
Constructor Details
- (InvalidLocale) initialize(locale)
A new instance of InvalidLocale
24 25 26 27 |
# File 'lib/i18n/exceptions.rb', line 24 def initialize(locale) @locale = locale super "#{locale.inspect} is not a valid locale" end |
Instance Attribute Details
- (Object) locale (readonly)
Returns the value of attribute locale
23 24 25 |
# File 'lib/i18n/exceptions.rb', line 23 def locale @locale end |