Module Gibbler::String
In: lib/gibbler.rb

Creates a digest based on: CLASS:LENGTH:VALUE. This method can be used for any class where the to_s method returns an appropriate unique value for this instance. It‘s used by default for Symbol, Class, Fixnum, and Bignum. e.g.

    "str" => String:3:str => 509a839ca1744c72e37759e7684ff0daa3b61427
    :sym  => Symbol:3:sym => f3b7b3ca9529002c6826b1ef609d3583c356c8c8

To use use method in other classes simply:

    class MyStringLikeClass
      include Gibbler::String
    end

Methods

Included Modules

Gibbler::Object

Public Class methods

Public Instance methods

Creates a digest for the current state of self.

[Validate]