Exception: Cheepub::I18n::InvalidLocaleData

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/cheepub/i18n.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(filename, exception_message) ⇒ InvalidLocaleData

Returns a new instance of InvalidLocaleData.



18
19
20
21
# File 'lib/cheepub/i18n.rb', line 18

def initialize(filename, exception_message)
  @filename, @exception_message = filename, exception_message
  super "can not load translations from #{filename}: #{exception_message}"
end

Instance Attribute Details

#filenameObject (readonly)

Returns the value of attribute filename.



17
18
19
# File 'lib/cheepub/i18n.rb', line 17

def filename
  @filename
end