Exception: Nanoc3::Errors::UnmetDependency
- Defined in:
- lib/nanoc3/base/errors.rb
Overview
Error that is raised when an rep cannot be compiled because it depends on other representations.
Instance Attribute Summary collapse
-
#rep ⇒ Nanoc3::ItemRep
readonly
The item representation that cannot yet be compiled.
Instance Method Summary collapse
-
#initialize(rep) ⇒ UnmetDependency
constructor
A new instance of UnmetDependency.
Constructor Details
#initialize(rep) ⇒ UnmetDependency
Returns a new instance of UnmetDependency.
117 118 119 120 |
# File 'lib/nanoc3/base/errors.rb', line 117 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}”).".make_compatible_with_env) end |
Instance Attribute Details
#rep ⇒ Nanoc3::ItemRep (readonly)
Returns The item representation that cannot yet be compiled.
113 114 115 |
# File 'lib/nanoc3/base/errors.rb', line 113 def rep @rep end |