From 12979424515344460afb12002ce07b670bf7cd6f Mon Sep 17 00:00:00 2001 From: drbrain Date: Mon, 15 Aug 2011 23:08:39 +0000 Subject: * ext/socket: Make Socket documentation appear. Add documentation for Socket, TCPServer, SOCKSSocket. Patch by Sylvain Daubert. [Ruby 1.9 - Feature #5182] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/socket/ipsocket.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ext/socket/ipsocket.c') diff --git a/ext/socket/ipsocket.c b/ext/socket/ipsocket.c index bc93140d68..6ca0c0cc71 100644 --- a/ext/socket/ipsocket.c +++ b/ext/socket/ipsocket.c @@ -288,14 +288,14 @@ ip_s_getaddress(VALUE obj, VALUE host) return rsock_make_ipaddr((struct sockaddr*)&addr); } -/* - * Document-class: ::IPSocket < BasicSocket - * - * IPSocket is the super class of TCPSocket and UDPSocket. - */ void rsock_init_ipsocket(void) { + /* + * Document-class: IPSocket < BasicSocket + * + * IPSocket is the super class of TCPSocket and UDPSocket. + */ rb_cIPSocket = rb_define_class("IPSocket", rb_cBasicSocket); rb_define_method(rb_cIPSocket, "addr", ip_addr, -1); rb_define_method(rb_cIPSocket, "peeraddr", ip_peeraddr, -1); -- cgit v1.2.3