diff options
-rw-r--r-- | ChangeLog | 10 | ||||
-rw-r--r-- | lib/rdoc/generators/html_generator.rb | 8 |
2 files changed, 18 insertions, 0 deletions
@@ -1,3 +1,13 @@ +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 12:11:37 2004 Dave Thomas <dave@pragprog.com> + + * lib/rdoc/generators/html_generator.rb: Hack to search parents + for unqualified constant names. + Sun May 9 22:37:00 2004 Gavin Sinclair <gsinclair@soyabean.com.au> * lib/net/ftp.rb: improved documentation 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? |