Method: Pathname#file_sha256
- Defined in:
- lib/gorge/pathname.rb
#file_sha256 ⇒ String
Returns the SHA256 hash (in hexadecimal format) of the contents of the file indicated by the Pathname.
33 34 35 |
# File 'lib/gorge/pathname.rb', line 33 def file_sha256 Digest::SHA256.file(self).hexdigest end |