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/mkconstants.rb | |
parent | 39e112f89a4e7471bb95ec516b05c75ac6df5aa9 (diff) |
* 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/mkconstants.rb')
-rw-r--r-- | ext/socket/mkconstants.rb | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/ext/socket/mkconstants.rb b/ext/socket/mkconstants.rb index 613850777d..3b63c39eff 100644 --- a/ext/socket/mkconstants.rb +++ b/ext/socket/mkconstants.rb @@ -284,18 +284,20 @@ result = ERB.new(<<'EOS', nil, '%').result(binding) <%= INTERN_DEFS.map {|vardef, gen_hash, decl, func| vardef }.join("\n") %> -/* - * Document-module: ::Socket::Constants - * - * Socket::Constants provides socket related constants. - * Following lists possible constants. - * If underlying platform doesn't define a constant, - * the corresponding Ruby constant is not defined. - * - */ static void init_constants(void) { + /* + * Document-module: Socket::Constants + * + * Socket::Constants provides socket-related constants. All possible + * socket constants are listed in the documentation but they may not all + * be present on your platform. + * + * If the underlying platform doesn't define a constant the corresponding + * Ruby constant is not defined. + * + */ rb_mSockConst = rb_define_module_under(rb_cSocket, "Constants"); <%= gen_const_defs %> |