file(name)
Updates the digest with the contents of a given file name and returns self.
# File ext/digest/lib/digest.rb, line 49 def file(name) File.open(name, "rb") {|f| buf = "" while f.read(16384, buf) update buf end } self end