Created
November 20, 2012 21:35
-
-
Save jballanc/4121336 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
class FunkyStringComp | |
def to_str | |
raise "This is some crazy shit..." | |
end | |
def <=>(oth) | |
3.0 | |
end | |
end | |
wut = FunkyStringComp.new | |
"test" <=> wut #=> Any guesses? | |
Time.new <=> wut #=> Seriously now? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment