# File lib/cool.io/socket.rb, line 219defself.connect(path, *args)
new(::UNIXSocket.new(path), *args)
end
new(socket)click to toggle source
# File lib/cool.io/socket.rb, line 223definitialize(socket)
raiseArgumentError, "socket must be a UNIXSocket"unlesssocket.is_a?::UNIXSocketsuper@address_family, @path = socket.peeraddrend