class Money::Formatter

def append_sign(formatted_number)

def append_sign(formatted_number)
  sign = money.negative? ? '-' : ''
  if rules[:sign_positive] == true && money.positive?
    sign = '+'
  end
  if rules[:sign_before_symbol] == true
    sign_before = sign
    sign = ''
  end
  symbol_value = symbol_value_from(rules)
  if symbol_value && !symbol_value.empty?
    if rules[:html_wrap_symbol]
      symbol_value = "<span class=\"currency_symbol\">#{symbol_value}</span>"
    elsif rules[:html_wrap]
      symbol_value = html_wrap(symbol_value, "currency-symbol")
    end
    rules[:format]
      .gsub('%u', [sign_before, symbol_value].join)
      .gsub('%n', [sign, formatted_number].join)
  else
    formatted_number = "#{sign_before}#{sign}#{formatted_number}"
  end
end