Module: Rooted::Tree
- Extended by:
- Forwardable
- Defined in:
- lib/rooted/tree.rb
Overview
Include this module in any object that responds to #root with a Node structure. The mixin provides some methods for describing the tree as well as direct access to some of the iteration methods in Node.
Instance Method Summary collapse
-
#freeze ⇒ Object
Freezes the node structure that is part of the tree.
Instance Method Details
#freeze ⇒ Object
Freezes the node structure that is part of the tree.
11 12 13 14 |
# File 'lib/rooted/tree.rb', line 11 def freeze root.freeze super end |