Methods

Class/Module Index [+]

Quicksearch

Nanoc::Errors::CannotUseTextualFilter

Error that is raised when a textual filter is attempted to be applied to a binary item representation.

Public Class Methods

new(rep, filter_class) click to toggle source

@param [Nanoc::ItemRep] rep The item representation that was

attempted to be filtered

@param [Class] filter_class The filter class that was used

# File lib/nanoc/base/errors.rb, line 148
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

[Validate]

Generated with the Darkfish Rdoc Generator 2.