Class: FileUtils

Inherits:
Object show all
Defined in:
lib/file.rb

Class Method Summary collapse

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