Exception: Nanoc::DataSources::Filesystem::InvalidMetadataError Private
- Inherits:
-
Error
- Object
- StandardError
- Error
- Nanoc::DataSources::Filesystem::InvalidMetadataError
- Defined in:
- lib/nanoc/data_sources/filesystem.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) ⇒ InvalidMetadataError
constructor
private
A new instance of InvalidMetadataError.
Constructor Details
#initialize(filename, klass) ⇒ InvalidMetadataError
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 InvalidMetadataError.
383 384 385 |
# File 'lib/nanoc/data_sources/filesystem.rb', line 383 def initialize(filename, klass) super("The file #{filename} has invalid metadata (expected key-value pairs, found #{klass} instead)") end |