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.