Method: FatCore::BigDecimal#inspect
- Defined in:
- lib/fat_core/bigdecimal.rb
#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 |