This method is deprecated or moved on the latest stable version.
The last existing version (v2_2_9) is shown here.
remove_comment(comment)
public
Removes a comment from this section if it is from the same file as
comment
# File lib/rdoc/context/section.rb, line 212
def remove_comment comment
return if @comments.empty?
case @comments
when Array then
@comments.delete_if do |my_comment|
my_comment.file == comment.file
end
when RDoc::Markup::Document then
@comments.parts.delete_if do |document|
document.file == comment.file.name
end
else
raise RDoc::Error, "BUG: unknown comment class #{@comments.class}"
end
end