Creates a digest based on:
- An Array of instance variable names and values in
the format: CLASS:LENGTH:VALUE
- The gibbler method is called on each
element so if it is a Hash or Array etc it will be parsed recursively according to
the gibbler method for that class type.
- Digest the Array of
digests
- Return the digest for class:length:value where:
- "class" is equal to the current object class (e.g. FullHouse).
- "length" is the size of the Array of
digests (which should equal the number of instance variables in the
object).
- "value" is the Array of digests joined
with a colon (":").
This method can be used by any class which stores values in instance
variables.
class Episodes
include Gibbler::Complex
attr_accessor :season, :year, :cast
end