Skip to content

Instantly share code, notes, and snippets.

@andkerosine
Created October 23, 2012 19:46
Show Gist options
  • Save andkerosine/3941115 to your computer and use it in GitHub Desktop.
Save andkerosine/3941115 to your computer and use it in GitHub Desktop.
class Integer
def method_missing meth, *args
super unless meth[/base\d+/]
to_s meth[4,2.0].to_i
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment