diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-08-30 09:39:47 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-08-30 09:39:47 +0000 |
commit | 1c1fb413cbd91be30de28008541cd63a40db1999 (patch) | |
tree | 7a92a91463200aaaf85a9a4714c487d582da2f66 /lib/rdoc/parsers/parse_c.rb | |
parent | 9af0c42ac9a9a117a31dca156f457f973e8e20d7 (diff) | |
download | ruby-1c1fb413cbd91be30de28008541cd63a40db1999.tar.gz ruby-1c1fb413cbd91be30de28008541cd63a40db1999.tar.xz ruby-1c1fb413cbd91be30de28008541cd63a40db1999.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/trunk@10800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/parsers/parse_c.rb')
-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 3185da771..a1ea9a5da 100644 --- a/lib/rdoc/parsers/parse_c.rb +++ b/lib/rdoc/parsers/parse_c.rb @@ -523,7 +523,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) |