Skip to content

Instantly share code, notes, and snippets.

@Raynes Raynes/gist:205805
Created Oct 9, 2009

Embed
What would you like to do?
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
You can’t perform that action at this time.