Skip to content

Instantly share code, notes, and snippets.

@MSch
Created February 22, 2010 01:56
Show Gist options
  • Save MSch/310701 to your computer and use it in GitHub Desktop.
Save MSch/310701 to your computer and use it in GitHub Desktop.
require 'bigdecimal'
class BigDecimal
def singleton_method_added(id)
end
end
a = BigDecimal('3.14')
def a.to_s(s = 'E')
'foo'
end
puts a.to_s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment