class Mongomatic::TypeConverters::Float
Public Instance Methods
convert_orig_val()
click to toggle source
# File lib/mongomatic/type_converters.rb, line 46 def convert_orig_val @orig_val.respond_to?(:to_f) ? @orig_val.to_f : nil end
type_match?()
click to toggle source
# File lib/mongomatic/type_converters.rb, line 42 def type_match? @orig_val.kind_of? ::Float end