Skip to content

Instantly share code, notes, and snippets.

@henrik
Created August 20, 2013 11:52
  • Star 9 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Better BigDecimal#inspect. Great with tests. By @aalin.
class BigDecimal
def inspect
format("#<BigDecimal:%x %s>", object_id, to_s('F'))
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment