Exception: I18n::InvalidLocaleData
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- ArgumentError
- I18n::InvalidLocaleData
- Defined in:
- lib/i18n/exceptions.rb
Instance Attribute Summary collapse
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
Instance Method Summary collapse
-
#initialize(filename) ⇒ InvalidLocaleData
constructor
A new instance of InvalidLocaleData.
Constructor Details
#initialize(filename) ⇒ InvalidLocaleData
Returns a new instance of InvalidLocaleData.
30 31 32 33 |
# File 'lib/i18n/exceptions.rb', line 30 def initialize(filename) @filename = filename super "can not load translations from #{filename}, expected it to return a hash, but does not" end |
Instance Attribute Details
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
29 30 31 |
# File 'lib/i18n/exceptions.rb', line 29 def filename @filename end |