summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-05-10 03:14:35 +0000
committerdave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-05-10 03:14:35 +0000
commit698ef52266deec33c8d7e5c931fdb363c9cd8c60 (patch)
tree23849e22ee0efc1ebea7810b74f70b72e621b889
parentb33cb58606d1601be42fb15c077a6592955763e9 (diff)
Search parent for unqualified constants
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog10
-rw-r--r--lib/rdoc/generators/html_generator.rb8
2 files changed, 18 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 57d3cbe78f..658ca3655c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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?