class Csv2Psql::Analyzers::Decimal
Decimal
value matcher
Constants
- CLASS
- RE
- TYPE
- WEIGHT
Public Class Methods
analyze(val)
click to toggle source
# File lib/csv2psql/analyzer/types/decimal.rb, line 15 def analyze(val) return true if val.is_a?(Float) res = val && RE.match(val) !res.nil? end
convert(val)
click to toggle source
# File lib/csv2psql/analyzer/types/decimal.rb, line 21 def convert(val) val.to_f end