ip

Addrinfo.ip(host) => addrinfo
Class Public methods

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)>
doc_ruby_on_rails
2015-03-30 05:21:09
Comments
Leave a Comment

Please login to continue.