Object
Creates checksums for given objects.
A checksum is a string, such as “mL+TaqNsEeiPkWloPgCtAofT1yg=”, that is used to determine whether a piece of data has changed.
@param obj The object to create a checksum for
@return [String] The digest
# File lib/nanoc/base/checksummer.rb, line 15 def calc(obj) digest = Digest::SHA1.new update(obj, digest) digest.base64digest end
[Validate]
Generated with the Darkfish Rdoc Generator 2.