diff options
| author | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-02 06:01:12 +0000 |
|---|---|---|
| committer | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-02 06:01:12 +0000 |
| commit | afe1219e1fc0f14ec5d6ed973c8b525b66b3377f (patch) | |
| tree | c389921b2db0f0622c37ac351b61ce7b48bdaeef /lib/rdoc/code_objects.rb | |
| parent | b585aec458d3bf191f928d2d67bea89cb4d89817 (diff) | |
| download | ruby-afe1219e1fc0f14ec5d6ed973c8b525b66b3377f.tar.gz ruby-afe1219e1fc0f14ec5d6ed973c8b525b66b3377f.tar.xz ruby-afe1219e1fc0f14ec5d6ed973c8b525b66b3377f.zip | |
Finish documenting internal stuff. See Changelog for other details
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@5364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/code_objects.rb')
| -rw-r--r-- | lib/rdoc/code_objects.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/rdoc/code_objects.rb b/lib/rdoc/code_objects.rb index f5b4e8185..a8c3752cb 100644 --- a/lib/rdoc/code_objects.rb +++ b/lib/rdoc/code_objects.rb @@ -263,6 +263,11 @@ module RDoc return self if self.name == name res = @modules[name] || @classes[name] return res if res + find_enclosing_module_named(name) + end + + # find a module at a higher scope + def find_enclosing_module_named(name) parent && parent.find_module_named(name) end @@ -316,6 +321,7 @@ module RDoc if result modules.each do |module_name| result = result.find_module_named(module_name) + break unless result end end end |
