Class: Compo::ArrayBranch
- Inherits:
-
ArrayComposite
- Object
- ArrayComposite
- Compo::ArrayBranch
- Includes:
- Branch
- Defined in:
- lib/compo/array_branch.rb
Overview
A simple implementation of a branch, whose children are stored in an Array
An ArrayBranch 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 ArrayBranch may change the IDs of items with higher indices in the array.
This is an extension of ArrayComposite to include the Movable and ParentTracker mixins.
Instance Attribute Summary
Attributes included from ParentTracker
Method Summary
Methods included from UrlReferenceable
Methods included from ParentTracker
#initialize, #remove_parent, #update_parent