Skip to content

Instantly share code, notes, and snippets.

@perspectivezoom
Created June 12, 2012 22:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save perspectivezoom/2920645 to your computer and use it in GitHub Desktop.
Save perspectivezoom/2920645 to your computer and use it in GitHub Desktop.
class Numeric
def add(n)
self + n
end
def subtract(n)
self-n
end
def multiply_by(n)
self * n
end
def divided_by(n)
self.to_f / n
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment