Class: Nanoc::Core::Checksummer::CollectionUpdateBehavior

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

Direct Known Subclasses

SetUpdateBehavior

Class Method Summary collapse

Class Method Details

.update(obj, digest) ⇒ Object



204
205
206
207
208
209
# File 'lib/nanoc/core/checksummer.rb', line 204

def self.update(obj, digest)
  obj.each do |el|
    yield(el)
    digest.update(',')
  end
end