class Goaltender::ValueParser::Float
Constants
- REGEX
Public Instance Methods
parse()
click to toggle source
# File lib/goaltender/value_parser/float.rb, line 7 def parse return input_value unless input_value.present? return input_value if ["Float", "Fixnum"].include?(input_value.class.name) input_value.scan(REGEX).join.try(:to_f) end