Hi --
inspect and to_s just produce strings. To see them, you have to print
them
![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
In fact, there are some handy methods for this:
p song # automatically calls inspect
puts song # automatically calls to_s
Also, if you are working in irb (the interactive Ruby terminal),
you'll see the value of every expression you type in. So in irb, if
your expression evaluates to a string, you'll see the string without
having to explicitly ask for it to be printed.
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)