lib/mongo/uri/options_mapper.rb
def apply_transform(key, value, type)
        if type
          send("convert_#{type}", key, value)
        else
          value
        end
      end
# Applies URI value transformation by either using the default cast
# or a transformation appropriate for the given type.
#
# @param key [String] URI option name.
# @param value [String] The value to be transformed.
# @param type [Symbol] The transform method.
Applies URI value transformation by either using the default cast
or a transformation appropriate for the given type.
Applies URI value transformation by either using the default cast or a transformation appropriate for the given type .
def apply_transform(key, value, type)
        if type
          send("convert_#{type}", key, value)
        else
          value
        end
      end
def apply_transform ( key , value , type ) if type send ( "convert_#{type}" , key , value ) else value end end
Applies URI value transformation by either using the default cast
or a transformation appropriate for the given type.
Applies URI value transformation by either using the default cast or a transformation appropriate for the given type .
key
URI option name.
URI option name .
value
The value to be transformed.
The value to be transformed .
type
The transform method.
The transform method .