Class: Nanoc::Int::Errors::RecursiveCompilation Private

Inherits:
Generic
  • Object
show all
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 during site compilation when an item (directly or indirectly) includes its own item content, leading to endless recursion.

Instance Method Summary collapse

Constructor Details

#initialize(reps) ⇒ RecursiveCompilation

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

Parameters:



59
60
61
62
# File 'lib/nanoc/base/errors.rb', line 59

def initialize(reps)
  list = reps.map(&:inspect).join("\n")
  super("The site cannot be compiled because the following items mutually depend on each other:\n#{list}.")
end