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 | 815c3462a5db37ae83fc25f3a6dba382af2beb71 (patch) | |
tree | c2d59557f5341202c22bf05448bebaad3df40a19 /lib/rdoc/code_objects.rb | |
parent | a04f95c800e7d9bc80e601675518a77b73cd98ab (diff) | |
download | ruby-815c3462a5db37ae83fc25f3a6dba382af2beb71.tar.gz ruby-815c3462a5db37ae83fc25f3a6dba382af2beb71.tar.xz ruby-815c3462a5db37ae83fc25f3a6dba382af2beb71.zip |
Finish documenting internal stuff. See Changelog for other details
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@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 |