Class: Nanoc::RuleDSL::Errors::NoMatchingCompilationRuleFound Private

Inherits:
Core::Error
  • Object
show all
Defined in:
lib/nanoc/rule_dsl/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 no compilation rule that can be applied to the current item can be found.

Instance Method Summary collapse

Constructor Details

#initialize(item) ⇒ NoMatchingCompilationRuleFound

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

Parameters:

  • item (Nanoc::Core::Item)

    The item for which no compilation rule could be found



19
20
21
# File 'lib/nanoc/rule_dsl/errors.rb', line 19

def initialize(item)
  super("No compilation rules were found for the “#{item.identifier}” item.")
end