Typecast the value to a BigDecimal, without checking if strings have a valid format.
# File lib/sequel/extensions/looser_typecasting.rb, line 32 def typecast_value_decimal(value) if value.is_a?(String) BigDecimal.new(value) else super end end
Typecast the value to a Float using to_f instead of Kernel.Float
# File lib/sequel/extensions/looser_typecasting.rb, line 16 def typecast_value_float(value) value.to_f end
Generated with the Darkfish Rdoc Generator 2.