Sha256: 12fc6c9cdc3d5146c278d5c783e071db22e7d5f55a71c08fd341b5e2008c9e01

Contents?: true

Size: 318 Bytes

Versions: 53

Compression:

Stored size: 318 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/, rounded_number)
      end
    end
  end
end

Version data entries

53 entries across 51 versions & 10 rubygems

Version Path
activesupport-4.2.11.3 lib/active_support/number_helper/number_to_percentage_converter.rb
activesupport-4.2.11.2 lib/active_support/number_helper/number_to_percentage_converter.rb
cocoapods-dependency-html-0.0.2 vendor/bundle/gems/activesupport-4.2.11.1/lib/active_support/number_helper/number_to_percentage_converter.rb
cocoapods-dependency-html-0.0.1 vendor/bundle/gems/activesupport-4.2.11.1/lib/active_support/number_helper/number_to_percentage_converter.rb
activesupport-4.2.11.1 lib/active_support/number_helper/number_to_percentage_converter.rb
activesupport-4.2.11 lib/active_support/number_helper/number_to_percentage_converter.rb
activesupport-4.2.10 lib/active_support/number_helper/number_to_percentage_converter.rb
activesupport-4.2.10.rc1 lib/active_support/number_helper/number_to_percentage_converter.rb
activesupport-4.2.9 lib/active_support/number_helper/number_to_percentage_converter.rb
activesupport-4.2.9.rc2 lib/active_support/number_helper/number_to_percentage_converter.rb
activesupport-4.2.9.rc1 lib/active_support/number_helper/number_to_percentage_converter.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/activesupport-4.2.8/lib/active_support/number_helper/number_to_percentage_converter.rb
activesupport-4.2.8 lib/active_support/number_helper/number_to_percentage_converter.rb
activesupport-4.2.8.rc1 lib/active_support/number_helper/number_to_percentage_converter.rb
activesupport-4.2.7.1 lib/active_support/number_helper/number_to_percentage_converter.rb
activesupport-4.2.7 lib/active_support/number_helper/number_to_percentage_converter.rb
activesupport-4.2.7.rc1 lib/active_support/number_helper/number_to_percentage_converter.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.6/lib/active_support/number_helper/number_to_percentage_converter.rb
activesupport-4.2.6 lib/active_support/number_helper/number_to_percentage_converter.rb
activesupport-4.2.6.rc1 lib/active_support/number_helper/number_to_percentage_converter.rb