Class: Compo::Branches::Hash
- Inherits:
-
Composites::Hash
- Object
- Composites::Hash
- Compo::Branches::Hash
- Includes:
- Branch
- Defined in:
- lib/compo/branches/hash.rb
Overview
A simple implementation of a branch, whose children are stored in an Hash
A hash branch is a composite object that may be moved into other composite objects. It stores its children as an Hash, and the ID of each child is its hash key. Inserting and removing items into the branch will not change the IDs of other items, but inserting with an existing key will remove the previous occupant.
Instance Attribute Summary
Attributes included from Mixins::ParentTracker
Attributes inherited from Composites::Hash
Method Summary
Methods included from Branch
Methods included from Mixins::UrlReferenceable
Methods included from Mixins::ParentTracker
#initialize, #root?, #update_parent
Methods included from Mixins::Movable
Methods inherited from Composites::Hash
Methods included from Composites::Composite
#add, #get_child, #get_child_such_that, #on_node, #remove, #remove_id