# File lib/mongo/util/node.rb, line 154 def split_node(host_port) if host_port.is_a?(String) host_port = host_port.split(":") end host = host_port[0] port = host_port[1].nil? ? MongoClient::DEFAULT_PORT : host_port[1].to_i [host, port] end