Class: Nanoc::Int::Errors::CannotGetCompiledContentOfBinaryItem 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 the compiled content of a binary item is attempted to be accessed.

Instance Method Summary collapse

Constructor Details

#initialize(rep) ⇒ CannotGetCompiledContentOfBinaryItem

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 CannotGetCompiledContentOfBinaryItem.

Parameters:

  • rep (Nanoc::Int::ItemRep)

    The binary item representation whose compiled content was attempted to be accessed



177
178
179
# File 'lib/nanoc/base/errors.rb', line 177

def initialize(rep)
  super("You cannot access the compiled content of a binary item representation (but you can access the path). The offending item rep is #{rep.inspect}.")
end