Exception: I18n::InvalidLocaleData

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#filenameObject (readonly)

Returns the value of attribute filename.



29
30
31
# File 'lib/i18n/exceptions.rb', line 29

def filename
  @filename
end