Flowdock
method

convert

Importance_0
v4.2.7 - Show latest stable - 0 notes - Class: NumberToCurrencyConverter
convert() public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activesupport/lib/active_support/number_helper/number_to_currency_converter.rb, line 6
      def convert
        number = self.number.to_s.strip
        format = options[:format]

        if is_negative?(number)
          format = options[:negative_format]
          number = absolute_value(number)
        end

        rounded_number = NumberToRoundedConverter.convert(number, options)
        format.gsub(/%n/, rounded_number).gsub(/%u/, options[:unit])
      end
Register or log in to add new notes.