RubyTree is a simple and general purpose implementation of the Tree data structure for the Ruby language. RubyTree aims to provide a simple to use node based model for the conceptual tree, and the ability to extend the model into specialized cases in user-generated code using generic APIs.
The current version provides implementations of:
RubyTree is available as a Rubygem and is released under the BSD License.
Minor maintenance version 0.8.2 released on Dec 15, 2011. This provides a fix for bug # 29435 (TreeNode#to_s breaks if @content or @parent.name is not a string).
Download & install the latest version using Rubygem (you may need to do this as the super user):
$ gem install rubytree
Check the documentation for RubyTree by looking up the RDoc using yri, or by browsing the online documentation.
$ yri Tree::TreeNode
Help RubyTree with your suggestions, bug reports, or patches.