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