Class: Compo::Branches::Leaf

Inherits:
Composites::Leaf show all
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

Constant

Instance Attribute Summary

Attributes included from Mixins::ParentTracker

#parent

Method Summary

Methods included from Branch

#find_url

Methods included from Mixins::UrlReferenceable

#parent, #url

Methods included from Mixins::ParentTracker

#initialize, #root?, #update_parent

Methods included from Mixins::Movable

#move_to

Methods inherited from Composites::Leaf

#children

Methods included from Composites::Composite

#add, #get_child, #get_child_such_that, #on_node, #remove, #remove_id