mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rdoc: Update to RDoc 3.7 (final)
* NEWS: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
41ab31e67a
commit
84ece95163
10 changed files with 201 additions and 111 deletions
|
@ -56,7 +56,12 @@ class RDoc::Markup::Document
|
|||
visitor.start_accepting
|
||||
|
||||
@parts.each do |item|
|
||||
item.accept visitor
|
||||
case item
|
||||
when RDoc::Markup::Document then # HACK
|
||||
visitor.accept_document item
|
||||
else
|
||||
item.accept visitor
|
||||
end
|
||||
end
|
||||
|
||||
visitor.end_accepting
|
||||
|
@ -66,7 +71,9 @@ class RDoc::Markup::Document
|
|||
# Does this document have no parts?
|
||||
|
||||
def empty?
|
||||
@parts.empty?
|
||||
@parts.empty? or
|
||||
(@parts.length == 1 and RDoc::Markup::Document === @parts.first and
|
||||
@parts.first.empty?)
|
||||
end
|
||||
|
||||
##
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue