class Nanoc::Core::Errors::CannotUseBinaryFilter
Error
that is raised when a binary filter is attempted to be applied to a textual item representation.
Public Class Methods
new(rep, filter_class)
click to toggle source
@param [Nanoc::Core::ItemRep] rep The item representation that was
attempted to be filtered
@param [Class] filter_class The filter class that was used
Calls superclass method
# File lib/nanoc/core/errors.rb, line 155 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