Class: Nanoc::DataSources::Filesystem::Errors::InvalidMetadata Private
- 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
-
#initialize(filename, klass) ⇒ InvalidMetadata
constructor
private
A new instance of InvalidMetadata.
Constructor Details
#initialize(filename, klass) ⇒ InvalidMetadata
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 InvalidMetadata.
40 41 42 |
# File 'lib/nanoc/data_sources/filesystem/errors.rb', line 40 def initialize(filename, klass) super("The file #{filename} has invalid metadata (expected key-value pairs, found #{klass} instead)") end |