lib/mongo/uri/options_mapper.rb
def convert_zlib_compression_level(name, value)
        if /\A-?\d+\z/ =~ value
          i = value.to_i

          if i >= -1 && i <= 9
            return i
          end
        end

        log_warn("#{value} is not a valid zlibCompressionLevel")
        nil
      end
# Parses the zlib compression level.
#
# @param [ String ] name Name of the URI option being processed.
# @param value [ String ] The zlib compression level string.
#
# @return [ Integer | nil ] The compression level value if it is between -1 and 9 (inclusive),
#   otherwise nil (and a warning will be logged).
Parses the zlib compression level.
Parses the zlib compression level .
def convert_zlib_compression_level(name, value)
        if /\A-?\d+\z/ =~ value
          i = value.to_i
          if i >= -1 && i <= 9
            return i
          end
        end
        log_warn("#{value} is not a valid zlibCompressionLevel")
        nil
      end
def convert_zlib_compression_level ( name , value ) if / \A -? \d + \z / =~ value i = value . to_i if i >= - 1 && i <= 9 return i end end log_warn ( "#{value} is not a valid zlibCompressionLevel" ) nil end
Parses the zlib compression level.
Parses the zlib compression level .
The compression level value if it is between -1 and 9 (inclusive), otherwise nil (and a warning will be logged).
The compression level value if it is between - 1 and 9 ( inclusive ) otherwise nil ( and a warning will be logged ) .
 Integer | nil 
name
value
The zlib compression level string.
The zlib compression level string .
name Name of the URI option being processed.
name Name of the URI option being processed .