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

#parent

Method Summary

Methods included from UrlReferenceable

#child_url, #parent, #url

Methods included from ParentTracker

#initialize, #remove_parent, #update_parent

Methods included from Movable

#move_to