John Rubinubi wrote:
> 
> Merry Christmas,
> 
> I am up to p. 19-20 in Programming Ruby. I am using RubyWin. The code
> below is uploaded rather than typed online so it is definately what I'm
> trying to run. As far as I can tell it's exactly like the example in the
> book except with different data.
> 
> Does this seem like it should output something?
> 
> class Song
>   def initialize(name, artist, duration)
>     @name=name
>     @artist=artist
>     @duration=duration
>   end
> end
> asong=Song.new( "Merry Xmas", "Bingo", 180)
> asong.inspect

inspect returns the "human readable string" . . . you'll get output if
you print this out, e.g.

puts asong.inspect

or you could just do:

p asong