RubyGems Navigation menu

rubytree 0.9.6

RubyTree is a pure Ruby implementation of the generic tree data structure. It provides a node-based model to store named nodes in the tree, and provides simple APIs to access, modify and traverse the structure. The implementation is node-centric, where individual nodes in the tree are the primary structural elements. All common tree-traversal methods (pre-order, post-order, and breadth-first) are supported. The library mixes in the Enumerable and Comparable modules to allow access to the tree as a standard collection (iteration, comparison, etc.). A Binary tree is also provided, which provides the in-order traversal in addition to the other methods. RubyTree supports importing from, and exporting to JSON, and also supports the Ruby's standard object marshaling. This is a BSD licensed open source project, and is hosted at, and is available as a standard gem from The home page for RubyTree is at


  1. 0.9.6 - May 30, 2015 (108 KB)
  2. 0.9.5 - January 4, 2015 (108 KB)
  3. 0.9.5pre7 - January 4, 2015 (108 KB)
  4. 0.9.5pre6 - January 4, 2015 (52.5 KB)
  5. 0.9.5pre5 - December 17, 2014 (52 KB)
Show all versions (33 total)


  • Anupam Sengupta



Sha 256 checksum:


Total downloads 532,145

For this version 14,734

Show all versions (33 total)

= Copy to clipboard Copied!

= Copy to clipboard Copied!



Required Ruby Version: >= 1.8.7