Created
February 8, 2013 15:12
-
-
Save cutalion/4739580 to your computer and use it in GitHub Desktop.
This file contains 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
def empty?(s) | |
return s.size == 0 | |
end | |
class B | |
def ==(s) | |
"not boolean" | |
end | |
end | |
class A | |
def size | |
B.new | |
end | |
end | |
puts empty?(A.new) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment