diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/rdoc/generators/html_generator.rb | 8 |
2 files changed, 13 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Mon May 10 12:11:37 2004 Dave Thomas <dave@pragprog.com> + + * lib/rdoc/generators/html_generator.rb: Hack to search parents + for unqualified constant names. + Mon May 10 01:18:15 2004 Minero Aoki <aamine@loveruby.net> * lib/net/pop.rb (loggin): append "\n". diff --git a/lib/rdoc/generators/html_generator.rb b/lib/rdoc/generators/html_generator.rb index 13d63e5a3c..ba1a512b16 100644 --- a/lib/rdoc/generators/html_generator.rb +++ b/lib/rdoc/generators/html_generator.rb @@ -73,6 +73,10 @@ module Generators def AllReferences.[](name) @@refs[name] end + + def AllReferences.keys + @@refs.keys + end end @@ -376,6 +380,10 @@ 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 && block_given? possibles = yield(i.name) while !ref and !possibles.empty? |