Typecast the value to a Float using to_f instead of Kernel.Float
# File lib/sequel/extensions/looser_typecasting.rb, line 10 def typecast_value_float(value) value.to_f end
Typecast the value to an Integer using to_i instead of Kernel.Integer
# File lib/sequel/extensions/looser_typecasting.rb, line 15 def typecast_value_integer(value) value.to_i end
[Validate]
Generated with the Darkfish Rdoc Generator 2.