Hi --

On Fri, 15 Dec 2006, Daniel Finnie wrote:

> To answer your question, use puts song.to_s to display output.

Or just puts song.  to_s will be called automatically:

irb(main):001:0> o = Object.new
=> #<Object:0xb7f06840>
irb(main):002:0> def o.to_s; "Here I am!"; end
=> nil
irb(main):003:0> puts o
Here I am!

:-)


David

-- 
Q. What's a good holiday present for the serious Rails developer?
A. RUBY FOR RAILS by David A. Black (http://www.manning.com/black)
    aka The Ruby book for Rails developers!
Q. Where can I get Ruby/Rails on-site training, consulting, coaching?
A. Ruby Power and Light, LLC (http://www.rubypal.com)