module Sequel::LooserTypecasting

  1. lib/sequel/extensions/looser_typecasting.rb
Parent: Sequel

Public Instance methods

typecast_value_float (value)

Typecast the value to a Float using to_f instead of Kernel.Float

[show source]
# File lib/sequel/extensions/looser_typecasting.rb, line 12
def typecast_value_float(value)
  value.to_f
end
typecast_value_integer (value)

Typecast the value to an Integer using to_i instead of Kernel.Integer

[show source]
# File lib/sequel/extensions/looser_typecasting.rb, line 17
def typecast_value_integer(value)
  value.to_i
end