Class: Compo::Branches::Leaf
- Inherits:
-
Composites::Leaf
- Object
- Composites::Leaf
- Compo::Branches::Leaf
- Includes:
- Branch
- Defined in:
- lib/compo/branches/leaf.rb
Overview
A simple implementation of a leaf node
Leaves have no children, but can be moved to one. They implement the Composite API, but all additions and removals fail, and the Leaf always reports no children.
Direct Known Subclasses
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::Leaf
Methods included from Composites::Composite
#add, #get_child, #get_child_such_that, #on_node, #remove, #remove_id