Class: Nanoc::Int::Errors::CannotUseBinaryFilter Private
- 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 filter is attempted to be applied to a textual item representation.
Instance Method Summary collapse
-
#initialize(rep, filter_class) ⇒ CannotUseBinaryFilter
constructor
private
A new instance of CannotUseBinaryFilter.
Constructor Details
#initialize(rep, filter_class) ⇒ CannotUseBinaryFilter
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 CannotUseBinaryFilter.
136 137 138 |
# File 'lib/nanoc/base/errors.rb', line 136 def initialize(rep, filter_class) super("The “#{filter_class.inspect}” filter cannot be used to filter the “#{rep.item.identifier}” item (rep “#{rep.name}”), because binary filters cannot be used on textual items. 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 |