Created
August 14, 2013 22:33
-
-
Save audiodude/6236335 to your computer and use it in GitHub Desktop.
"Code our love," she said
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 Person | |
def loves other_person | |
true | |
end | |
end | |
class CutePerson < Person | |
end | |
class GrumpyPerson < Person | |
end | |
alias does puts | |
abby = CutePerson.new | |
tmoney = GrumpyPerson.new | |
does tmoney.loves(abby) == abby.loves(tmoney) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment