This method is deprecated or moved on the latest stable version.
The last existing version (v2_2_9) is shown here.
parse()
public
Parses comment_location into an RDoc::Markup::Document composed of
multiple RDoc::Markup::Documents with their file set.
# File lib/rdoc/context/section.rb, line 176
def parse
case @comments
when String then
super
when Array then
docs = @comments.map do |comment, location|
doc = super comment
doc.file = location if location
doc
end
RDoc::Markup::Document.new(*docs)
when RDoc::Comment then
doc = super @comments.text, comments.format
doc.file = @comments.location
doc
when RDoc::Markup::Document then
return @comments
else
raise ArgumentError, "unknown comment class #{comments.class}"
end
end