Class: Nanoc::Int::Errors::CannotLayoutBinaryItem Private

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

Overview

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.

Error that is raised when a binary item is attempted to be laid out.

Instance Method Summary collapse

Constructor Details

#initialize(rep) ⇒ CannotLayoutBinaryItem

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

Parameters:



112
113
114
# File 'lib/nanoc/base/errors.rb', line 112

def initialize(rep)
  super("The “{rep.item.identifier}” item (rep “#{rep.name}”) cannot be laid out because it is a binary item. If you are getting this error for an item that should be textual instead of binary, make sure that its extension is included in the text_extensions array in the site configuration.")
end