module Bizsh::Formatting
String formatting for better ouput.
Constants
- DEFAULT_DECIMAL_PLACES
Default the number of decimal places we show in strings.
- FORMATTERS
Format a number into a percentage.
Public Instance Methods
to_s(format=nil, *args)
click to toggle source
Calls superclass method
# File lib/bizsh.rb, line 29 def to_s(format=nil, *args) if formatter = FORMATTERS[format] formatter.call(self, *args) else super() end end