Class: Compo::Leaf

Inherits:
NullComposite show all
Includes:
Branch
Defined in:
lib/compo/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.

Instance Attribute Summary

Attributes included from ParentTracker

#parent

Method Summary

Methods included from UrlReferenceable

#child_url, #parent, #url

Methods included from ParentTracker

#initialize, #remove_parent, #update_parent

Methods included from Movable

#move_to

Methods inherited from NullComposite

#children

Methods included from Composite

#add, #get_child, #remove, #remove_id