Created
July 17, 2015 10:49
-
-
Save jazzytomato/34d4e586b33304b42831 to your computer and use it in GitHub Desktop.
troll add
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
# troll your friends and enemies | |
class Fixnum | |
alias_method :add, :+ | |
def +(other); rand(10) == 0 ? self * other : self.add(other); end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment