From: "Giacomo C." Date: 2011-09-29T10:50:40+09:00 Subject: Re: Tree - Recursive print function Sam Duncan wrote in post #1024169: > Why are you adding 'page' as a child of itself? > > tree = page > tree.addchild(page2) > tree.addchild(page3) > tree.addchild(page4) > tree.addchild(page5) > tree.addchild(page) > > Sam Hmm... this is a bit painful/embarrassing... Thanks for the comment that should have been very obvious to me haha. Thanks! And Chris, thanks for your comment and I'll have a look into it. Giac0m0. -- Posted via http://www.ruby-forum.com/.