RubyTree is a Ruby implementation of the generic tree data structure. It provides simple APIs to store named nodes, and to access, modify, and traverse the tree. The data model is node-centric, where nodes in the tree are the primary structural elements. It supports all common tree-traversal methods (pre-order, post-order, and breadth first). RubyTree mixes in the Enumerable and Comparable modules and behaves like a standard Ruby collection (iteration, comparison, etc.). RubyTree also includes a binary tree implementation, which provides in-order node traversal besides the other methods. RubyTree can import from and export to JSON, and supports Ruby’s object marshaling.
Required Ruby Version
>= 2.7
Authors
Anupam Sengupta
Versions
-
2.2.3
-
source
- 2.2.3 source October 07, 2026 (55.5 KB)
-
-
2.2.2
-
source
- 2.2.2 source August 09, 2026 (53 KB)
-
-
2.2.1
-
source
- 2.2.1 source July 25, 2026 (53 KB)
-
-
2.2.0
-
source
- 2.2.0 source February 06, 2026 (54.5 KB)
-
-
2.1.1
-
source
- 2.1.1 source December 20, 2024 (53 KB)
-