From: Phrogz Date: 2006-12-31T01:40:09+09:00 Subject: Re: with and without Song#to_s again chen li wrote: > I have the following script. I don't call Song#to_s in > my script but I can print all the attributes of a > song. Why is that? chen li, you can find this answer yourself. 1) Open a console and type: ri Kernel.puts 2) See that it says that it's the same as $stdout.puts. Type: ri IO.puts 3) See that it says that it does the same thing as print does. Type: ri IO.print 4) See that it tells you that it calls the to_s method of any objects that aren't strings.