Sha256: e2d0d18a5e60153c2decfae6c55aa7a7587e38c11c23d45ea4734548e743e540
Contents?: true
Size: 356 Bytes
Versions: 49
Compression:
Stored size: 356 Bytes
Contents
# frozen_string_literal: true 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
49 entries across 49 versions & 8 rubygems