RubyGems Navigation menu

parallel_ancestry 1.0.1

Create and track parallel inheritance hierarchies. Hook parallel hierarchies (by including a module) to automatically update/register ancestry at include and extend, or update/register only manually. Manual registration permits definitions of ancestry across, for example, instances of the same type or instances of entirely different types. Implementation is provided by simple child/parent trees with an block to choose which parent. This permits a simple multiple inheritance model very similar to how Ruby handles modules. Conflicts for multiple inheritance are resolved by the parent most recently named for the block match. Used heavily by CascadingConfiguration gem (cascading-configuration) as well as by forthcoming Persistence and Magnets gems (persistence and magnets).

Gemfile:
= Copy to clipboard Copied!

install:
=

Versions:

  1. 1.0.2 - July 11, 2012 (11 KB)
  2. 1.0.1 - July 07, 2012 (11 KB)
  3. 1.0.0 - July 07, 2012 (11 KB)

Runtime Dependencies (2):

Owners:

Authors:

  • Asher

SHA 256 checksum:

6259ad14a0445a27b85d52fbc9ccc5279195e12a95112dde04e20f9f2edfd61b

Total downloads 9,916

For this version 2,936

Licenses:

N/A

Required Ruby Version: None

Links: