Class: Nanoc::DataSources::Filesystem::Errors::InvalidFormat 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(content_filename) ⇒ InvalidFormat

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 InvalidFormat.



28
29
30
31
32
33
34
# File 'lib/nanoc/data_sources/filesystem/errors.rb', line 28

def initialize(content_filename)
  super(
    "The file '#{content_filename}' appears to start with a metadata " \
    'section (three or five dashes at the top) but it does not seem ' \
    'to be in the correct format.'
  )
end