1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

rdoc update.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2009-01-17 05:52:16 +00:00
parent 97cbab78dc
commit 3f9d4f1fbd

View file

@ -1398,13 +1398,15 @@ addrinfo_s_getaddrinfo(int argc, VALUE *argv, VALUE self)
return addrinfo_list_new(node, service, family, socktype, protocol, flags);
}
/*
* call-seq:
* AddrInfo.ip(host) => addrinfo
*
* 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)>
*/
static VALUE