Skip to content

Instantly share code, notes, and snippets.

@pjg
Forked from henrik/big_decimal_inspect.rb
Created August 22, 2013 13:18
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 pjg/6307018 to your computer and use it in GitHub Desktop.
Save pjg/6307018 to your computer and use it in GitHub Desktop.
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