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



208
209
210
211
# File 'lib/nanoc/core/checksummer.rb', line 208

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