Class: Nanoc::Int::Errors::CannotUseTextualFilter 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 textual filter is attempted to be applied to a binary item representation.
Instance Method Summary collapse
-
#initialize(rep, filter_class) ⇒ CannotUseTextualFilter
constructor
private
A new instance of CannotUseTextualFilter.
Constructor Details
#initialize(rep, filter_class) ⇒ CannotUseTextualFilter
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 CannotUseTextualFilter.
124 125 126 |
# File 'lib/nanoc/base/errors.rb', line 124 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 textual filters cannot be used on binary items.") end |