Class: Nanoc::Core::Checksummer::RuleContextUpdateBehavior

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

Class Method Summary collapse

Class Method Details

.update(obj, digest) {|obj.item| ... } ⇒ Object

Yields:

  • (obj.item)


138
139
140
141
142
143
144
145
146
147
148
149
# File 'lib/nanoc/core/checksummer.rb', line 138

def self.update(obj, digest)
  digest.update('item=')
  yield(obj.item)
  digest.update(',rep=')
  yield(obj.rep)
  digest.update(',items=')
  yield(obj.items)
  digest.update(',layouts=')
  yield(obj.layouts)
  digest.update(',config=')
  yield(obj.config)
end