RAA - superhash/0.2

superhash / 0.2

Short description: SuperHash
Category: Library/Datastructure
Status: Beta
Created: 2002-11-19 17:54:38 GMT
Last update: 2004-06-07 04:19:56 GMT
Owner: Joel VanderWerf (Projects of this owner)
Homepage: http://redshift.sourceforge.net/superhash/
Download: http://redshift.sourceforge.net/superhash/superhash-0.2.tgz
License: Ruby's
Dependency:
None
Description:

The Ruby inheritance system is a powerful way to organize methods and constants
in a hierarchy of classes and modules. However, it does not provide an easy way
to organize inherited attribute values in such a hierarchy. A class variable is
stored in the base class in which it was defined; its value can be changed by a
subclass, but that change propagates to all subclasses of the base class. A
class instance variable can take on a different value in each subclass, but
there is no inheritance mechanism; its value is privately accessible by its
owner, and does not propagate to subclasses.

SuperHash solves this class attribute problem and in addition is a
general mechanism for defining attribute inheritance structures among objects
of any type, not just classes. An example of the former is StateObject,
in examples/state-object.rb. An example of the latter is
AttributedNode defined in examples/attributed-node.rb.

Version 0.2 is an update for ruby-1.7.3.

Versions: [0.3 (2004-06-11)] [0.2 (2004-06-07)]

Edit this project (for project owner)

back to RAA top