lib/mongo/db.rb
# Close the connection to the database.
Close the connection to the database.
Close the connection to the database .
def close
          if @socket
            s = @socket
            @socket = nil
            s.close
          end
        end
def close if @socket s = @socket @socket = nil s . close end end
Close the connection to the database.
Close the connection to the database .