diff options
author | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-03-24 03:35:24 +0000 |
---|---|---|
committer | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-03-24 03:35:24 +0000 |
commit | 91faa496b3d1864fc3c8de34c5cbb0712791686c (patch) | |
tree | e6805a6d6e1e2dbb03ff445443f6416786ce1df9 /lib/rdoc/parsers/parse_c.rb | |
parent | fdef713db1724873dc994f4203f866d796cd3274 (diff) | |
download | ruby-91faa496b3d1864fc3c8de34c5cbb0712791686c.tar.gz |
Don't be as eager to invent classes to document
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/parsers/parse_c.rb')
-rw-r--r-- | lib/rdoc/parsers/parse_c.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/rdoc/parsers/parse_c.rb b/lib/rdoc/parsers/parse_c.rb index 2b12411ae9..200519a784 100644 --- a/lib/rdoc/parsers/parse_c.rb +++ b/lib/rdoc/parsers/parse_c.rb @@ -340,8 +340,10 @@ module RDoc meth_body, param_count, source_file = nil) @stats.num_methods += 1 + class_name = @known_classes[var_name] + + return unless class_name - class_name = @known_classes[var_name] || var_name class_obj = find_class(var_name, class_name) if class_obj |