mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Finish documenting internal stuff. See Changelog for other details
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
eee1377a60
commit
88c127c19b
20 changed files with 1453 additions and 266 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue