This method is deprecated or moved on the latest stable version.
The last existing version (v2_2_9) is shown here.
add_comment(comment)
public
Adds comment to this section
# File lib/rdoc/context/section.rb, line 63
def add_comment comment
comment = extract_comment comment
return if comment.empty?
case comment
when RDoc::Comment then
@comments << comment
when RDoc::Markup::Document then
@comments.concat comment.parts
when Array then
@comments.concat comment
else
raise TypeError, "unknown comment type: #{comment.inspect}"
end
end