diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rdoc/generators/html_generator.rb | 16 |
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? |