Module: Sequel::LooserTypecasting
- Defined in:
- lib/sequel/extensions/looser_typecasting.rb
Instance Method Summary collapse
-
#typecast_value_float(value) ⇒ Object
Typecast the value to a Float using to_f instead of Kernel.Float.
-
#typecast_value_integer(value) ⇒ Object
Typecast the value to an Integer using to_i instead of Kernel.Integer.
Instance Method Details
#typecast_value_float(value) ⇒ Object
Typecast the value to a Float using to_f instead of Kernel.Float
10 11 12 |
# File 'lib/sequel/extensions/looser_typecasting.rb', line 10 def typecast_value_float(value) value.to_f end |
#typecast_value_integer(value) ⇒ Object
Typecast the value to an Integer using to_i instead of Kernel.Integer
15 16 17 |
# File 'lib/sequel/extensions/looser_typecasting.rb', line 15 def typecast_value_integer(value) value.to_i end |