summaryrefslogtreecommitdiff
path: root/lib/rdoc
diff options
context:
space:
mode:
authordave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-05-10 12:46:18 +0000
committerdave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-05-10 12:46:18 +0000
commit58ec532ac9d6bc8913bc681d922a34d2d9ecf4b0 (patch)
treeb18ac0ecee1afdc189e952a5abce96ccaf0d8dad /lib/rdoc
parentae3241dcfe7ffd81766e179bb306b00c8764a312 (diff)
Change symbol lookup scheme in HTML generation
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc')
-rw-r--r--lib/rdoc/generators/html_generator.rb16
1 files changed, 12 insertions, 4 deletions
diff --git a/lib/rdoc/generators/html_generator.rb b/lib/rdoc/generators/html_generator.rb
index ba1a512b16..ef08951063 100644
--- a/lib/rdoc/generators/html_generator.rb
+++ b/lib/rdoc/generators/html_generator.rb
@@ -380,10 +380,18 @@ module Generators
res = []
array.each do |i|
ref = AllReferences[i.name]
- if !ref && @context.parent
- name = @context.parent.name + "::" + i.name
- ref = AllReferences[name]
- end
+# if !ref
+# container = @context.parent
+# while !ref && container
+# name = container.name + "::" + i.name
+# ref = AllReferences[name]
+# container = container.parent
+# end
+# end
+
+ ref = @context.find_symbol(i.name)
+ ref = ref.viewer if ref
+
if !ref && block_given?
possibles = yield(i.name)
while !ref and !possibles.empty?