123456789_123456789_123456789_123456789_123456789_

Class: ActiveSupport::NumberHelper::NumberToPercentageConverter

Do not use. This class is for internal use only.
Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: ActiveSupport::NumberHelper::NumberConverter
Defined in: activesupport/lib/active_support/number_helper/number_to_percentage_converter.rb

Constant Summary

NumberConverter - Inherited

DEFAULTS

Class Attribute Summary

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

This class inherits a constructor from ActiveSupport::NumberHelper::NumberConverter

Instance Method Details

#convert

[ GitHub ]

  
# File 'activesupport/lib/active_support/number_helper/number_to_percentage_converter.rb', line 10

def convert
  rounded_number = NumberToRoundedConverter.convert(number, options)
  options[:format].gsub("%n", rounded_number)
end