diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-03-21 10:50:52 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-03-21 10:50:52 +0000 |
commit | daa739876f1bbd14b043a6361e9d434d324afff5 (patch) | |
tree | 807a9e89308c79c1681d89aed801ff6478f63c5a /ext/socket/unixserver.c | |
parent | cce4892c1fb4a6690e230bf90c3d7973acbf14d8 (diff) | |
download | ruby-daa739876f1bbd14b043a6361e9d434d324afff5.tar.gz |
* ext/socket: make sources rdoc friendly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/unixserver.c')
-rw-r--r-- | ext/socket/unixserver.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/socket/unixserver.c b/ext/socket/unixserver.c index fa41cba02a..e29e9cb87b 100644 --- a/ext/socket/unixserver.c +++ b/ext/socket/unixserver.c @@ -136,6 +136,8 @@ unix_sysaccept(VALUE sock) #endif /* + * Document-class: ::UNIXServer < UNIXSocket + * * UNIXServer class */ void @@ -147,5 +149,6 @@ Init_unixserver(void) rb_define_method(rb_cUNIXServer, "accept", unix_accept, 0); rb_define_method(rb_cUNIXServer, "accept_nonblock", unix_accept_nonblock, 0); rb_define_method(rb_cUNIXServer, "sysaccept", unix_sysaccept, 0); + rb_define_method(rb_cUNIXServer, "listen", rsock_sock_listen, 1); /* in socket.c */ #endif } |