Skip to content

Instantly share code, notes, and snippets.

@jendiamond
Created November 4, 2015 00:35
Show Gist options
  • Select an option

  • Save jendiamond/8bc2608b1f508fc5516d to your computer and use it in GitHub Desktop.

Select an option

Save jendiamond/8bc2608b1f508fc5516d to your computer and use it in GitHub Desktop.
class PlusMinus
def +(a,b)
a-b
end
def -(a,b)
a+b
end
end
p x = PlusMinus.new.+(8,9)
p o = PlusMinus.new.-(8,9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment