Class: Nanoc::Core::Checksummer::SetUpdateBehavior

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

Class Method Summary collapse

Class Method Details

.update(obj, digest) ⇒ Object



213
214
215
216
# File 'lib/nanoc/core/checksummer.rb', line 213

def self.update(obj, digest)
  # Similar to CollectionUpdateBehavior, but sorted for consistency.
  super(obj.sort { |a, b| (a <=> b) || 0 }, digest)
end