BigDecimal#inspect for people who aren't cyborgs

Posted . Visible to the public.

I wonder if the guy that wrote BigDecimal#inspect has a tragic backstory that explains why he hates humanity.

- Tim Pope Show archive.org snapshot

I finally gave up and made BigDecimal#inspect return BigDecimal#to_s:

p BigDecimal.new('2.3') #=> "2.3"

Use the attached initializer.

Profile picture of Henning Koch
Henning Koch
Last edit
License
Source code in this card is licensed under the MIT License.
Posted by Henning Koch to makandra dev (2012-06-27 14:20)