Class Nanoc::ChecksumStore
In: lib/nanoc/base/compilation/checksum_store.rb
Parent: ::Nanoc::Store

Stores checksums for objects in order to be able to detect whether a file has changed since the last site compilation.

@api private

Methods

[]   []=   data   data=   new   unload  

Public Class methods

@option params [Nanoc::Site] site The site where this checksum store

  belongs to

Public Instance methods

Returns the old checksum for the given object. This makes sense for items, layouts and code snippets.

@param [reference] obj The object for which to fetch the checksum

@return [String] The checksum for the given object

Sets the checksum for the given object.

@param [reference] obj The object for which to set the checksum

@param [String] checksum The checksum

Protected Instance methods

[Validate]