Class: Compo::Branches::Array
- Inherits:
-
Composites::Array
- Object
- Composites::Array
- Compo::Branches::Array
- Includes:
- Branch
- Defined in:
- lib/compo/branches/array.rb
Overview
A simple implementation of a branch, whose children are stored in an Array
An array branch is a composite object that may be moved into other composite objects. It stores its children as an Array, and the ID of each child is its current index in the array. Inserting and removing items into the branch may change the IDs of items with higher indices in the array.
Instance Attribute Summary
Attributes included from Mixins::ParentTracker
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::Array
Methods included from Composites::Composite
#add, #get_child, #get_child_such_that, #on_node, #remove, #remove_id