Stores checksums for objects in order to be able to detect whether a file has changed since the last site compilation.
@api private
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
# File lib/nanoc/base/compilation/checksum_store.rb, line 26 def [](obj) @checksums[obj.reference] end
Sets the checksum for the given object.
@param [reference] obj The object for which to set the checksum
@param [String] checksum The checksum
# File lib/nanoc/base/compilation/checksum_store.rb, line 35 def []=(obj, checksum) @checksums[obj.reference] = checksum end
@see Nanoc::Store#unload
# File lib/nanoc/base/compilation/checksum_store.rb, line 40 def unload @checksums = {} end
Generated with the Darkfish Rdoc Generator 2.