Method: Pathname#file_sha1

Defined in:
lib/gorge/pathname.rb

#file_sha1String

Returns the SHA1 hash (in hexadecimal format) of the contents of the file indicated by the Pathname.

Returns:



25
26
27
# File 'lib/gorge/pathname.rb', line 25

def file_sha1
  Digest::SHA1.file(self).hexdigest
end