Module: Gibbler::Nil
Overview
Creates a digest based on: CLASS:\0
e.g.
nil.gibbler # => 06fdf26b
Class Method Summary collapse
Instance Method Summary collapse
-
#__gibbler(h = self) ⇒ Object
Creates a digest for the current state of self.
Methods included from Object
#gibbled?, #gibbler, #gibbler_debug
Class Method Details
.included(obj) ⇒ Object
368 369 370 371 |
# File 'lib/gibbler.rb', line 368 def self.included(obj) obj.extend Attic obj.attic :__gibbler_cache end |
Instance Method Details
#__gibbler(h = self) ⇒ Object
Creates a digest for the current state of self.
374 375 376 377 378 379 |
# File 'lib/gibbler.rb', line 374 def __gibbler(h=self) klass = h.class a = Gibbler.digest "%s:%s" % [klass, "\0"] gibbler_debug klass, a, [klass, "\0"] a end |