class AccountingMoneyParser
Public Instance Methods
parse(input, currency = nil, **options)
click to toggle source
Calls superclass method
MoneyParser::parse
# File lib/money/accounting_money_parser.rb, line 4 def parse(input, currency = nil, **options) # set () to mean negativity. ignore $ super(input.gsub(/\(\$?(.*?)\)/, '-\1'), currency, **options) end