method

file

Importance_1
v2_4_6 - Show latest stable - 0 notes - Class: Class
file(name, *args) public

Creates a digest object and reads a given file, name. Optional arguments are passed to the constructor of the digest class.

p Digest::SHA256.file("X11R6.8.2-src.tar.bz2").hexdigest
# => "f02e3c85572dc9ad7cb77c2a638e3be24cc1b5bea9fdbb0b0299c9668475c534"
Show source
Register or log in to add new notes.