Exception: I18n::InvalidLocale
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- ArgumentError
- I18n::InvalidLocale
- Defined in:
- lib/gems/activesupport-2.2.2/lib/active_support/vendor/i18n-0.0.1/i18n/exceptions.rb
Instance Attribute Summary collapse
-
#locale ⇒ Object
readonly
Returns the value of attribute locale.
Instance Method Summary collapse
-
#initialize(locale) ⇒ InvalidLocale
constructor
A new instance of InvalidLocale.
Constructor Details
#initialize(locale) ⇒ InvalidLocale
Returns a new instance of InvalidLocale.
6 7 8 9 |
# File 'lib/gems/activesupport-2.2.2/lib/active_support/vendor/i18n-0.0.1/i18n/exceptions.rb', line 6 def initialize(locale) @locale = locale super "#{locale.inspect} is not a valid locale" end |
Instance Attribute Details
#locale ⇒ Object (readonly)
Returns the value of attribute locale.
5 6 7 |
# File 'lib/gems/activesupport-2.2.2/lib/active_support/vendor/i18n-0.0.1/i18n/exceptions.rb', line 5 def locale @locale end |