Replaces this comment’s text with text and resets the parsed
document.
An error is raised if the comment contains a document but no text.
# File lib/rdoc/comment.rb, line 224
def text= text
raise RDoc::Error, 'replacing document-only comment is not allowed' if
@text.nil? and @document
@document = nil
@text = text.nil? ? nil : text.dup
end