Exception: I18n::UnknownFileType

Inherits:
ArgumentError show all
Defined in:
lib/i18n/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, filename) ⇒ UnknownFileType



99
100
101
102
# File 'lib/i18n/exceptions.rb', line 99

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



98
99
100
# File 'lib/i18n/exceptions.rb', line 98

def filename
  @filename
end

#typeObject (readonly)

Returns the value of attribute type



98
99
100
# File 'lib/i18n/exceptions.rb', line 98

def type
  @type
end