class Darkroom::CircularReferenceError

Error class used when an asset reference results in a circular reference chain.

Public Class Methods

new(snippet, source_path, source_line_num) click to toggle source

Creates a new instance.

  • snippet - Snippet showing the reference.

  • source_path - Path of the asset that contains the error.

  • source_line_num - Line number in the asset where the error is located.

Calls superclass method Darkroom::AssetError::new
# File lib/darkroom/errors/circular_reference_error.rb, line 17
def initialize(snippet, source_path, source_line_num)
  super('Reference would result in a circular reference chain', snippet, source_path, source_line_num)
end