Class: Nanoc::Int::Checksummer::HashUpdateBehavior Private
- Inherits:
-
UpdateBehavior
- Object
- UpdateBehavior
- Nanoc::Int::Checksummer::HashUpdateBehavior
- 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.
150 151 152 153 154 155 156 157 |
# File 'lib/nanoc/base/checksummer.rb', line 150 def self.update(obj, digest) obj.each do |key, value| yield(key) digest.update('=') yield(value) digest.update(',') end end |