Flowdock
method

ip

Importance_1
v1_9_2_180 - Show latest stable - 0 notes - Class: Addrinfo
ip(p1) public

returns an addrinfo object for IP address.

The port, socktype, protocol of the result is filled by zero. So, it is not appropriate to create a socket.

Addrinfo.ip("localhost") #=> #<Addrinfo: 127.0.0.1 (localhost)>
Show source
Register or log in to add new notes.