Class Index [+]

Quicksearch

Sequel::LooserTypecasting

Public Instance Methods

typecast_value_float(value) click to toggle source

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

    # File lib/sequel/extensions/looser_typecasting.rb, line 12
12:     def typecast_value_float(value)
13:       value.to_f
14:     end
typecast_value_integer(value) click to toggle source

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

    # File lib/sequel/extensions/looser_typecasting.rb, line 17
17:     def typecast_value_integer(value)
18:       value.to_i
19:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.