diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-08-23 09:23:11 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-08-23 09:23:11 +0000 |
| commit | d4e15b2a2931c2fc1781f263a394a634cfac61ea (patch) | |
| tree | 8d8de506bf4682446f93d710dad12d54548f4a3c | |
| parent | 71ddac2667818f799b28c5b68c8ef48d90b5b8b3 (diff) | |
| download | ruby-d4e15b2a2931c2fc1781f263a394a634cfac61ea.tar.gz ruby-d4e15b2a2931c2fc1781f263a394a634cfac61ea.tar.xz ruby-d4e15b2a2931c2fc1781f263a394a634cfac61ea.zip | |
* lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser::handle_method):
rdoc documents C module methods as instance methods. a patch in
[ruby-core:08536].
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | lib/rdoc/parsers/parse_c.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rdoc/parsers/parse_c.rb b/lib/rdoc/parsers/parse_c.rb index 18f5165f2..19b5d443f 100644 --- a/lib/rdoc/parsers/parse_c.rb +++ b/lib/rdoc/parsers/parse_c.rb @@ -521,7 +521,8 @@ module RDoc type = "singleton_method" end meth_obj = AnyMethod.new("", meth_name) - meth_obj.singleton = type == "singleton_method" + meth_obj.singleton = + %w{singleton_method module_function}.include?(type) p_count = (Integer(param_count) rescue -1) |
