mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rdoc.rb: Updated to RDoc 3.6
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
fe89874540
commit
0b6da24a5e
28 changed files with 593 additions and 97 deletions
|
@ -180,6 +180,20 @@ class RDoc::CodeObject
|
|||
@document_children = @document_self
|
||||
end
|
||||
|
||||
##
|
||||
# Yields each parent of this CodeObject. See also
|
||||
# RDoc::ClassModule#each_ancestor
|
||||
|
||||
def each_parent
|
||||
code_object = self
|
||||
|
||||
while code_object = code_object.parent do
|
||||
yield code_object
|
||||
end
|
||||
|
||||
self
|
||||
end
|
||||
|
||||
##
|
||||
# Force the documentation of this object unless documentation
|
||||
# has been turned off by :endoc:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue