Created
April 24, 2011 09:05
-
-
Save lolmaus/939425 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class DB | |
def self.poke! | |
# This is a stub. | |
end | |
def self.poke_child | |
DB_CSV.poke! | |
end | |
end | |
class DB_CSV < DB | |
def self.poke! | |
puts "Ouch!" | |
end | |
end | |
DB.poke_child # Produces: Ouch! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment