Class: Nanoc::Int::Errors::UnmetDependency Private
- 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 when an rep cannot be compiled because it depends on other representations.
Instance Attribute Summary collapse
-
#rep ⇒ Nanoc::Int::ItemRep
readonly
private
The item representation that cannot yet be compiled.
Instance Method Summary collapse
-
#initialize(rep) ⇒ UnmetDependency
constructor
private
A new instance of UnmetDependency.
Constructor Details
#initialize(rep) ⇒ UnmetDependency
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 UnmetDependency.
102 103 104 105 |
# File 'lib/nanoc/base/errors.rb', line 102 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
#rep ⇒ Nanoc::Int::ItemRep (readonly)
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 The item representation that cannot yet be compiled.
98 99 100 |
# File 'lib/nanoc/base/errors.rb', line 98 def rep @rep end |