Exception: Nanoc::Errors::UnmetDependency

Inherits:
Generic
  • Object
show all
Defined in:
lib/nanoc/base/errors.rb

Overview

Error that is raised when an rep cannot be compiled because it depends on other representations.

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (UnmetDependency) initialize(rep)

Returns a new instance of UnmetDependency

Parameters:

  • rep (Nanoc::ItemRep)

    The item representation that cannot yet be compiled



123
124
125
126
# File 'lib/nanoc/base/errors.rb', line 123

def initialize(rep)
  @rep = rep
  super("The current item cannot be compiled yet because of an unmet dependency on the “#{rep.item.identifier}” item (rep “#{rep.name}”).")
end

Instance Attribute Details

- (Nanoc::ItemRep) rep (readonly)

Returns The item representation that cannot yet be compiled

Returns:

  • (Nanoc::ItemRep)

    The item representation that cannot yet be compiled



119
120
121
# File 'lib/nanoc/base/errors.rb', line 119

def rep
  @rep
end