Exception: I18n::UnknownFileType
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- ArgumentError
- I18n::UnknownFileType
- Defined in:
- lib/active_support/vendor/i18n-0.4.1/i18n/exceptions.rb
Instance Attribute Summary collapse
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, filename) ⇒ UnknownFileType
constructor
A new instance of UnknownFileType.
Constructor Details
#initialize(type, filename) ⇒ UnknownFileType
Returns a new instance of UnknownFileType.
56 57 58 59 |
# File 'lib/active_support/vendor/i18n-0.4.1/i18n/exceptions.rb', line 56 def initialize(type, filename) @type, @filename = type, filename super "can not load translations from #{filename}, the file type #{type} is not known" end |
Instance Attribute Details
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
55 56 57 |
# File 'lib/active_support/vendor/i18n-0.4.1/i18n/exceptions.rb', line 55 def filename @filename end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
55 56 57 |
# File 'lib/active_support/vendor/i18n-0.4.1/i18n/exceptions.rb', line 55 def type @type end |