Class: Nanoc::DataSources::Filesystem::Errors::InvalidEncoding Private

Inherits:
Generic
  • Object
show all
Defined in:
lib/nanoc/data_sources/filesystem/errors.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Constructor Details

#initialize(filename, encoding) ⇒ InvalidEncoding

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of InvalidEncoding.



46
47
48
# File 'lib/nanoc/data_sources/filesystem/errors.rb', line 46

def initialize(filename, encoding)
  super("Could not read #{filename} because the file is not valid #{encoding}.")
end