Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/csv2qif/string_ext.rb
Instance Method Summary collapse
Instance Method Details
#super_to_f ⇒ Object
2 |
# File 'lib/csv2qif/string_ext.rb', line 2 alias super_to_f to_f |
#to_f ⇒ Object
4 5 6 7 8 9 |
# File 'lib/csv2qif/string_ext.rb', line 4 def to_f if i=index(',') gsub!(/,/, i + 3 < length ? '': '.') end gsub(/\$/, '').super_to_f end |