Method: ActiveSupport::NumberHelper::NumberToPercentageConverter#convert
- Defined in:
- activesupport/lib/active_support/number_helper/number_to_percentage_converter.rb
#convert ⇒ Object
10 11 12 13 |
# File 'activesupport/lib/active_support/number_helper/number_to_percentage_converter.rb', line 10 def convert rounded_number = NumberToRoundedConverter.convert(number, ) [:format].gsub("%n", rounded_number) end |