default value for nodes_or_host

This commit is contained in:
Jim Menard 2009-01-15 09:29:38 -05:00
parent 871c9ee873
commit feaa141e2b
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ module XGen
#
# When a DB object first connects, it tries nodes and stops at the
# first one it connects to.
def initialize(nodes_or_host, port=nil)
def initialize(nodes_or_host=nil, port=nil)
@nodes = case nodes_or_host
when String
[[nodes_or_host, port || DEFAULT_PORT]]