diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-08-15 23:08:39 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-08-15 23:08:39 +0000 |
commit | 12979424515344460afb12002ce07b670bf7cd6f (patch) | |
tree | 2d85f664a0fb708e459a30c56738487948ced8f9 /ext/socket/unixsocket.c | |
parent | 39e112f89a4e7471bb95ec516b05c75ac6df5aa9 (diff) | |
download | ruby-12979424515344460afb12002ce07b670bf7cd6f.tar.gz |
* 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
Diffstat (limited to 'ext/socket/unixsocket.c')
-rw-r--r-- | ext/socket/unixsocket.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/socket/unixsocket.c b/ext/socket/unixsocket.c index f8017924a8..15196e7b1f 100644 --- a/ext/socket/unixsocket.c +++ b/ext/socket/unixsocket.c @@ -492,15 +492,15 @@ unix_s_socketpair(int argc, VALUE *argv, VALUE klass) } #endif -/* - * Document-class: ::UNIXSocket < BasicSocket - * - * UNIXSocket represents a UNIX domain stream client socket. - */ void rsock_init_unixsocket(void) { #ifdef HAVE_SYS_UN_H + /* + * Document-class: UNIXSocket < BasicSocket + * + * UNIXSocket represents a UNIX domain stream client socket. + */ rb_cUNIXSocket = rb_define_class("UNIXSocket", rb_cBasicSocket); rb_define_method(rb_cUNIXSocket, "initialize", unix_init, 1); rb_define_method(rb_cUNIXSocket, "path", unix_path, 0); |