evolve75/RubyTree

print_tree is undefined while running the example_basic.rb

zotherstupidguy opened this issue · 3 comments

running the example via ruby examples/example_basic.rb gives

examples/example_basic.rb:30:in <main>': undefined methodprint_tree' for #Tree::TreeNode:0xb8008a6c (NoMethodError)

@zotherstupidguy,

Thanks for identifying the issue. Should have a fix shortly.

@zotherstupidguy,

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

evolve75 works fine!!!! sorry :)