Exception: I18n::UnknownFileType

Inherits:
ArgumentError show all
Defined in:
lib/active_support/vendor/i18n-0.0.1/i18n/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, filename) ⇒ UnknownFileType

Returns a new instance of UnknownFileType.



48
49
50
51
# File 'lib/active_support/vendor/i18n-0.0.1/i18n/exceptions.rb', line 48

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

#filenameObject (readonly)

Returns the value of attribute filename.



47
48
49
# File 'lib/active_support/vendor/i18n-0.0.1/i18n/exceptions.rb', line 47

def filename
  @filename
end

#typeObject (readonly)

Returns the value of attribute type.



47
48
49
# File 'lib/active_support/vendor/i18n-0.0.1/i18n/exceptions.rb', line 47

def type
  @type
end