print_tree is undefined while running the example_basic.rb
zotherstupidguy opened this issue · 3 comments
zotherstupidguy commented
running the example via ruby examples/example_basic.rb
gives
examples/example_basic.rb:30:in <main>': undefined method
print_tree' for #Tree::TreeNode:0xb8008a6c (NoMethodError)
evolve75 commented
Thanks for identifying the issue. Should have a fix shortly.
evolve75 commented
Can you please retry after installing the gem using the shell/console command:
gem install rubytree
and then executing the example using:
ruby example_basic.rb
You should get output similar to:
$ gem install rubytree
Fetching: rubytree-0.9.6.gem (100%)
========================================================================
Thank you for installing RubyTree.
Note:: As of 0.9.5, the Tree::TreeNode#add method has 'move' semantics.
Details of the API changes are documented in the API-CHANGES file.
========================================================================
Successfully installed rubytree-0.9.6
1 gem installed
$ cd rubytree/examples
~rubytree/examples
$ ruby example_basic.rb
* ROOT
* ROOT
|---+ CHILD1
| +---> GRANDCHILD1
zotherstupidguy commented
evolve75 works fine!!!! sorry :)