Class: Nanoc::Int::Item Private

Inherits:
Document show all
Defined in:
lib/nanoc/base/entities/item.rb

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.

Instance Attribute Summary

Attributes inherited from Document

#checksum_data, #content, #identifier

Instance Method Summary collapse

Methods inherited from Document

#==, #attributes, #eql?, #freeze, #hash, #initialize, #inspect

Methods included from ContractsSupport

included

Constructor Details

This class inherits a constructor from Nanoc::Int::Document

Instance Method Details

#referenceObject

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 an object that can be used for uniquely identifying objects.

Returns:

  • (Object)

    An unique reference to this object



9
10
11
# File 'lib/nanoc/base/entities/item.rb', line 9

def reference
  [:item, identifier.to_s]
end