* 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
This commit is contained in:
matz 2006-08-23 09:23:11 +00:00
parent febdd16fe4
commit 7c8abff0c3

View file

@ -521,7 +521,8 @@ module RDoc
type = "singleton_method" type = "singleton_method"
end end
meth_obj = AnyMethod.new("", meth_name) 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) p_count = (Integer(param_count) rescue -1)