diff options
| author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-08-15 23:20:44 +0000 |
|---|---|---|
| committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-08-15 23:20:44 +0000 |
| commit | 82322e5d4b5943f2f1791133ed2dbcc06316638f (patch) | |
| tree | ae435ccaba05f21c00d1f9887603147ff12cb038 /ext/socket/basicsocket.c | |
| parent | 28d8d87812ff93d91d2881de389f8a20934f2d97 (diff) | |
* backport r32977 from trunk
* 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/branches/ruby_1_9_3@32979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/basicsocket.c')
| -rw-r--r-- | ext/socket/basicsocket.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ext/socket/basicsocket.c b/ext/socket/basicsocket.c index aa99041664..b997043620 100644 --- a/ext/socket/basicsocket.c +++ b/ext/socket/basicsocket.c @@ -732,12 +732,14 @@ bsock_do_not_rev_lookup_set(VALUE self, VALUE val) return val; } -/* - * BasicSocket is the super class for the all socket classes. - */ void rsock_init_basicsocket(void) { + /* + * Document-class: BasicSocket < IO + * + * BasicSocket is the super class for all the Socket classes. + */ rb_cBasicSocket = rb_define_class("BasicSocket", rb_cIO); rb_undef_method(rb_cBasicSocket, "initialize"); |
