summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-08-23 09:23:11 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-08-23 09:23:11 +0000
commit7c8abff0c37df7e644b9a1f0e77b9ce8b716d6c0 (patch)
tree8d8de506bf4682446f93d710dad12d54548f4a3c
parentfebdd16fe4754bb0e71cdcb15e813c4462e9b5e6 (diff)
downloadruby-7c8abff0c37df7e644b9a1f0e77b9ce8b716d6c0.tar.gz
* 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: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--lib/rdoc/parsers/parse_c.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rdoc/parsers/parse_c.rb b/lib/rdoc/parsers/parse_c.rb
index 18f5165f25..19b5d443f6 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)