Class: Nanoc::Core::Checksummer::HashUpdateBehavior

Inherits:
UpdateBehavior show all
Defined in:
lib/nanoc/core/checksummer.rb

Class Method Summary collapse

Class Method Details

.update(obj, digest) ⇒ Object



220
221
222
223
224
225
226
227
# File 'lib/nanoc/core/checksummer.rb', line 220

def self.update(obj, digest)
  obj.each do |key, value|
    yield(key)
    digest.update('=')
    yield(value)
    digest.update(',')
  end
end