From: Jan Friedrich Date: 2007-04-21T21:05:05+09:00 Subject: Re: Binary Tree Martin wrote: > I'm a newbie in Ruby and I am trying to implement a Binary Tree. > > def to_s() > print "Key = ", @key, " Data = ", @data > end > end btw: The method to_s should *return* a string *not print* a string! def to_s "Key = #@key Data = #@data" end regards Jan