Created
October 9, 2009 06:56
-
-
Save Raynes/205805 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 Integer | |
def add(n) | |
self + n | |
end | |
def divide(n) | |
self / n | |
end | |
def multiply(n) | |
self * n | |
end | |
def subtract(n) | |
self - n | |
end | |
def expoentiate(n) | |
self ^ n | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment