Module: AmountParser

Defined in:
lib/qif/amount_parser.rb

Class Method Summary collapse

Class Method Details

.parse(amount) ⇒ Object



2
3
4
5
# File 'lib/qif/amount_parser.rb', line 2

def self.parse(amount)
  warn "= amounts are unsupported" if amount =~ /^=/
  amount.gsub(/,/, '').gsub(/^=/, '').to_f
end