Module: Compo::Branch
- Includes:
- Movable, ParentTracker, UrlReferenceable
- Included in:
- ArrayBranch, HashBranch, Leaf
- Defined in:
- lib/compo/branch.rb
Overview
A movable, URL referenceable parent tracker
A Branch represents a fully-featured part of a composite object. This abstract pattern is implemented concretely by Leaf (a Branch with no children), ArrayBranch (a Branch with a list of numerically identified children), and HashBranch (a Branch with a hash of key-identified children). reports no children.
Instance Attribute Summary
Attributes included from ParentTracker
Method Summary
Methods included from UrlReferenceable
Methods included from ParentTracker
#initialize, #remove_parent, #update_parent