Class: Nanoc::Int::Checksummer::RescueUpdateBehavior Private
- Inherits:
-
UpdateBehavior
- Object
- UpdateBehavior
- Nanoc::Int::Checksummer::RescueUpdateBehavior
- 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.
196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 |
# File 'lib/nanoc/base/checksummer.rb', line 196 def self.update(obj, digest) if obj.class.to_s == 'Sass::Importers::Filesystem' digest.update('root=') digest.update(obj.root) return end data = begin Marshal.dump(obj) rescue obj.inspect end digest.update(data) end |