module RootedTree::Tree
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
.
Public Instance Methods
freeze()
click to toggle source
Freezes the node structure that is part of the tree.
Calls superclass method
# File lib/rooted_tree/tree.rb, line 11 def freeze root.freeze super end