# File lib/memcache.rb, line 260 def initialize(host, port = DEFAULT_PORT, weight = DEFAULT_WEIGHT) if host.nil? || host.empty? raise ArgumentError, "No host specified" elsif port.nil? || port.to_i.zero? raise ArgumentError, "No port specified" end @host = host @port = port.to_i @weight = weight.to_i @sock = nil @retry = nil @status = "NOT CONNECTED" end