Sha256: 8079664b853b1d1f4360273903eb90b2a6e0d498fe4877f886b403e84e232212
Contents?: true
Size: 280 Bytes
Versions: 5
Compression:
Stored size: 280 Bytes
Contents
require 'freighthopper/define_and_alias' class Float define_and_alias :to_s, :format do |*args| format = args.first return to_s_without_format if format.nil? format = "$%0.2f" if format == :usd (format.is_a?(Fixnum) ? "%0.#{format}f" : format) % self end end
Version data entries
5 entries across 5 versions & 1 rubygems