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

Version Path
activesupport-5.0.1.rc1 lib/active_support/number_helper/number_to_percentage_converter.rb
second_step-0.1.2 secondstep-notify-1.0.0-osx/lib/ruby/lib/ruby/gems/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/number_helper/number_to_percentage_converter.rb
activesupport-5.0.0.1 lib/active_support/number_helper/number_to_percentage_converter.rb
activesupport-5.0.0 lib/active_support/number_helper/number_to_percentage_converter.rb
activesupport-5.0.0.rc2 lib/active_support/number_helper/number_to_percentage_converter.rb
activesupport-5.0.0.racecar1 lib/active_support/number_helper/number_to_percentage_converter.rb
activesupport-5.0.0.rc1 lib/active_support/number_helper/number_to_percentage_converter.rb
activesupport-5.0.0.beta4 lib/active_support/number_helper/number_to_percentage_converter.rb
activesupport-5.0.0.beta3 lib/active_support/number_helper/number_to_percentage_converter.rb
activesupport-5.0.0.beta2 lib/active_support/number_helper/number_to_percentage_converter.rb
activesupport-5.0.0.beta1.1 lib/active_support/number_helper/number_to_percentage_converter.rb
activesupport-5.0.0.beta1 lib/active_support/number_helper/number_to_percentage_converter.rb