Exception: Nanoc::Errors::UnmetDependency
- Inherits:
-
Generic
- Object
- StandardError
- Generic
- Nanoc::Errors::UnmetDependency
- 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)
-
- (Nanoc::ItemRep) rep
readonly
The item representation that cannot yet be compiled.
Instance Method Summary (collapse)
-
- (UnmetDependency) initialize(rep)
constructor
A new instance of UnmetDependency.
Constructor Details
- (UnmetDependency) initialize(rep)
Returns a new instance of UnmetDependency
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
119 120 121 |
# File 'lib/nanoc/base/errors.rb', line 119 def rep @rep end |