def colored_currency(amount, currency_name)
      return '' unless amount

      color = amount < 0 ? :red : :green

      ColorizedString[currency(amount, currency_name)].colorize color
    end
def colored_currency(amount, currency_name)
      return '' unless amount

      color = amount < 0 ? :red : :green

      ColorizedString[currency(amount, currency_name)].colorize color
    end
Returns a formatted string for the specified currency amount and currency, and colors it red for negative values
 and green for positive values. Two decimal places are used for all currencies except the Japanese Yen.

 @param [Float, Integer] amount The currency amount to format.
 @param [String] currency_name The currency.

 @return [String] The formatted and colored currency amount, e.g. `"USD -130.40"`, `"AUD 539.10"`, `"JPY 3560"`.