file

file(name) Instance Public methods updates the digest with the contents of a given file name and returns self.

hexdigest

digest_obj.hexdigest â stringdigest_obj.hexdigest(string) â string Instance Public methods If none is given, returns the resulting hash value of the digest in a hex-encoded form, keeping the digest's state. If a string is given, returns the hash value for the given string in a hex-encoded form, resetting the digest to the initial state before and after the process.

hexdigest!

digest_obj.hexdigest! â string Instance Public methods Returns the resulting hash value in a hex-encoded form and resets the digest to the initial state.

inspect

digest_obj.inspect â string Instance Public methods Creates a printable version of the digest object.

length

digest_obj.length â integer Instance Public methods Returns digest_obj.digest_length().

new

digest_obj.new â another_digest_obj Instance Public methods Returns a new, initialized copy of the digest object. Equivalent to digest_obj.clone().reset().

reset

digest_obj.reset â digest_obj Instance Public methods Resets the digest to the initial state and returns self. This method is overridden by each implementation subclass.

size

digest_obj.size â integer Instance Public methods Returns digest_obj.digest_length().

to_s

digest_obj.to_s â string Instance Public methods Returns digest_obj.hexdigest().

update

digest_obj.update(string) â digest_obj Instance Public methods Updates the digest using a given string and returns self. The update() method and the left-shift operator are overridden by each implementation subclass. (One should be an alias for the other)