Exception: Nanoc3::Errors::UnmetDependency

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

Instance Method Summary collapse

Constructor Details

#initialize(rep) ⇒ UnmetDependency

Returns a new instance of UnmetDependency.

Parameters:

  • The (Nanoc3::ItemRep)

    item representation that cannot yet be compiled



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

#repNanoc3::ItemRep (readonly)

Returns The item representation that cannot yet be compiled.

Returns:

  • (Nanoc3::ItemRep)

    The item representation that cannot yet be compiled



113
114
115
# File 'lib/nanoc3/base/errors.rb', line 113

def rep
  @rep
end