This method is deprecated or moved on the latest stable version.
The last existing version (v2_2_9) is shown here.
merge(other)
public
When this is a collection of documents (#file is not set and this document
contains only other documents as its direct children) #merge replaces documents in
this class with documents from other when the file matches and
adds documents from other when the files do not.
The information in other is preferred over the receiver
# File lib/rdoc/markup/document.rb, line 113
def merge other
if empty? then
@parts = other.parts
return self
end
other.parts.each do |other_part|
self.parts.delete_if do |self_part|
self_part.file and self_part.file == other_part.file
end
self.parts << other_part
end
self
end