Class: Digest::MD5
- Inherits:
-
Object
- Object
- Digest::MD5
- Defined in:
- lib/rscale/helpers.rb
Class Method Summary collapse
Class Method Details
.filedigest(path) ⇒ Object
21 22 23 24 25 |
# File 'lib/rscale/helpers.rb', line 21 def self.filedigest(path) d = Digest::MD5.new File.open(path, 'r') { |f| d.update(f.read(BLOCK_SIZE)) until f.eof? } d.hexdigest end |