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

* ext/socket/raddrinfo.c (Init_addrinfo): add AddrInfo#to_s as an

alias of AddrInfo#to_sockaddr.

* ext/socket/option.c (Init_sockopt): add Socket::Option#to_s as an
  alias of Socket::Option#data.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2009-02-02 14:44:28 +00:00
parent 092861f37d
commit 9946e700c1
3 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,11 @@
Mon Feb 2 23:43:00 2009 Tanaka Akira <akr@fsij.org>
* ext/socket/raddrinfo.c (Init_addrinfo): add AddrInfo#to_s as an
alias of AddrInfo#to_sockaddr.
* ext/socket/option.c (Init_sockopt): add Socket::Option#to_s as an
alias of Socket::Option#data.
Mon Feb 2 21:04:13 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
* array.c (rb_ary_sort_by_bang): RDoc update. [ruby-core:21742]

View file

@ -371,5 +371,7 @@ Init_sockopt(void)
rb_define_method(rb_cSockOpt, "int", sockopt_int, 0);
rb_define_method(rb_cSockOpt, "unpack", sockopt_unpack, 1);
rb_define_method(rb_cSockOpt, "to_s", sockopt_data, 0); /* compatibility for ruby before 1.9.2 */
}

View file

@ -2114,6 +2114,7 @@ Init_addrinfo(void)
#endif
rb_define_method(rb_cAddrInfo, "to_sockaddr", addrinfo_to_sockaddr, 0);
rb_define_method(rb_cAddrInfo, "to_s", addrinfo_to_sockaddr, 0); /* compatibility for ruby before 1.9.2 */
rb_define_method(rb_cAddrInfo, "getnameinfo", addrinfo_getnameinfo, -1);