Class: Nanoc::Int::Checksummer::DocumentUpdateBehavior Private
- Inherits:
-
UpdateBehavior
- Object
- UpdateBehavior
- Nanoc::Int::Checksummer::DocumentUpdateBehavior
- Defined in:
- lib/nanoc/base/checksummer.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
- .update(obj, digest) ⇒ Object private
Class Method Details
.update(obj, digest) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'lib/nanoc/base/checksummer.rb', line 161 def self.update(obj, digest) if obj.checksum_data digest.update('checksum_data=' + obj.checksum_data) else digest.update('content=') yield(obj.content) digest.update(',attributes=') yield(obj.attributes) digest.update(',identifier=') yield(obj.identifier) end end |