minor: docs

This commit is contained in:
Kyle Banker 2010-12-30 15:45:24 -05:00
parent 49d7bb0883
commit b83877527e
1 changed files with 2 additions and 0 deletions

View File

@ -58,6 +58,8 @@ module Mongo
# Parse a MongoDB URI. This method is used by Connection.from_uri.
# Returns an array of nodes and an array of db authorizations, if applicable.
#
# @core connections
def initialize(string)
if string =~ /^mongodb:\/\//
string = string[10..-1]