diff -ur c:\arc\ruby-1.8.5-p12\lib\rdoc/code_objects.rb c:\ruby-1.8.5\lib\ruby\1.8\rdoc/code_objects.rb --- c:\arc\ruby-1.8.5-p12\lib\rdoc/code_objects.rb 2004-12-04 14:38:15.000000000 +0900 +++ c:\ruby-1.8.5\lib\ruby\1.8\rdoc/code_objects.rb 2007-01-04 20:49:09.500000000 +0900 @@ -520,13 +520,21 @@ end def TopLevel.find_class_named(name) - @@all_classes.each_value do |c| + @@all_classes.each_value do |c| res = c.find_class_named(name) return res if res end nil end + def TopLevel.find_module_named(name) + @@all_modules.each_value do |c| + res = c.find_symbol(name) + return res if res + end + nil + end + def find_local_symbol(symbol) find_class_or_module_named(symbol) || super end Only in c:\arc\ruby-1.8.5-p12\lib\rdoc/markup: .document diff -ur c:\arc\ruby-1.8.5-p12\lib\rdoc/parsers/parse_rb.rb c:\ruby-1.8.5\lib\ruby\1.8\rdoc/parsers/parse_rb.rb --- c:\arc\ruby-1.8.5-p12\lib\rdoc/parsers/parse_rb.rb 2007-01-04 20:14:37.921875000 +0900 +++ c:\ruby-1.8.5\lib\ruby\1.8\rdoc/parsers/parse_rb.rb 2007-01-04 20:50:11.250000000 +0900 @@ -1764,6 +1764,9 @@ else other = TopLevel.find_class_named(name) unless other + other = TopLevel.find_module_named(name) + end + unless other # other = @top_level.add_class(NormalClass, name, nil) # other.record_location(@top_level) # other.comment = comment Only in c:\arc\ruby-1.8.5-p12\lib\rdoc: README