Parent

Methods

Class/Module Index [+]

Quicksearch

Nanoc::Checksummer

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.

Public Class Methods

calc(obj) click to toggle source

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