Skip to content

Instantly share code, notes, and snippets.

@austenito
Created February 15, 2012 01:29
Show Gist options
  • Save austenito/1832338 to your computer and use it in GitHub Desktop.
Save austenito/1832338 to your computer and use it in GitHub Desktop.
class Song
def initialize(name, artist, duration)
@name = name
@artist = artist
@duration = duration
end
def to_s
"Song: #{@name} --#{@artist} (#{@duration})"
end
end
class KaraokeSong < Song
end
@j3j3
Copy link

j3j3 commented May 16, 2012

What an amazing gist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment