Sha256: fda9a4a11d970425c8ba3bdf56be34bc0bb7e7162d9bc1beac2776f4dccd34fa
Contents?: true
Size: 325 Bytes
Versions: 52
Compression:
Stored size: 325 Bytes
Contents
module ActiveSupport module NumberHelper class NumberToPercentageConverter < NumberConverter # :nodoc: self.namespace = :percentage def convert rounded_number = NumberToRoundedConverter.convert(number, options) options[:format].gsub('%n'.freeze, rounded_number) end end end end
Version data entries
52 entries across 50 versions & 8 rubygems