Skip to content

Instantly share code, notes, and snippets.

@ir-norn
Created September 27, 2015 04:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ir-norn/36bd8e1ef4635cbd3e60 to your computer and use it in GitHub Desktop.
Save ir-norn/36bd8e1ef4635cbd3e60 to your computer and use it in GitHub Desktop.
module Rationalize
refine Fixnum do
def /(other)
quo(other)
end
end
end
p 1 / 2
using Rationalize
p 1 / 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment