Class: Nanoc::Int::Errors::UnmetDependency Private

Inherits:
Generic
  • Object
show all
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

Instance Method Summary collapse

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.

Parameters:



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

#repNanoc::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.

Returns:



98
99
100
# File 'lib/nanoc/base/errors.rb', line 98

def rep
  @rep
end