Exception: Nanoc::DataSources::Filesystem::InvalidMetadataError Private

Inherits:
Error
  • Object
show all
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

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