Class: FileUtils
Class Method Summary collapse
-
.md5(file) ⇒ Object
Obtain an MD5 checksum of the file in question.
Class Method Details
.md5(file) ⇒ Object
Obtain an MD5 checksum of the file in question
4 5 6 |
# File 'lib/file.rb', line 4 def self.md5(file) Digest::MD5.hexdigest(IO.readlines(file).to_s) end |