diff options
| author | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-09-11 07:11:46 +0000 |
|---|---|---|
| committer | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-09-11 07:11:46 +0000 |
| commit | ede60cb883126717edf612a53921057f39a428df (patch) | |
| tree | 39366e65074c92c97c4d57aa71eea5c5da0637d0 /lib | |
| parent | 8f413bf75dae97a91f49b9c563381c86983e01ef (diff) | |
| download | ruby-ede60cb883126717edf612a53921057f39a428df.tar.gz ruby-ede60cb883126717edf612a53921057f39a428df.tar.xz ruby-ede60cb883126717edf612a53921057f39a428df.zip | |
Fix up cross-file class merging
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/rdoc/code_objects.rb | 6 | ||||
| -rw-r--r-- | lib/rdoc/parsers/parse_rb.rb | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/lib/rdoc/code_objects.rb b/lib/rdoc/code_objects.rb index 82872db14..55b1cfa65 100644 --- a/lib/rdoc/code_objects.rb +++ b/lib/rdoc/code_objects.rb @@ -477,6 +477,12 @@ module RDoc nil end + # Find a named module + def find_module_named(name) + find_class_or_module_named(name) || find_enclosing_module_named(name) + end + + end # ClassModule is the base class for objects representing either a diff --git a/lib/rdoc/parsers/parse_rb.rb b/lib/rdoc/parsers/parse_rb.rb index 8a1ecc612..90194e069 100644 --- a/lib/rdoc/parsers/parse_rb.rb +++ b/lib/rdoc/parsers/parse_rb.rb @@ -1760,7 +1760,7 @@ module RDoc else cls_type = NormalClass end - + cls = container.add_class(cls_type, name, superclass) read_documentation_modifiers(cls, CLASS_MODIFIERS) cls.record_location(@top_level) |
