Method: Pathname#file_sha256

Defined in:
lib/gorge/pathname.rb

#file_sha256String

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

Returns:



33
34
35
# File 'lib/gorge/pathname.rb', line 33

def file_sha256
  Digest::SHA256.file(self).hexdigest
end