Module: FatCore::BigDecimal
- Included in:
- BigDecimal
- Defined in:
- lib/fat_core/bigdecimal.rb
Instance Method Summary collapse
-
#inspect ⇒ String
Provide a human-readable display for BigDecimal.
Instance Method Details
#inspect ⇒ String
Provide a human-readable display for BigDecimal. e.g., while debugging. The inspect method in BigDecimal is unreadable, as it exposes the underlying implementation, not the number's value. This corrects that.
10 11 12 |
# File 'lib/fat_core/bigdecimal.rb', line 10 def inspect to_f.to_s end |