mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
* 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:
parent
febdd16fe4
commit
7c8abff0c3
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue