comment=(comment)
public
Replaces our comment with comment, unless it is empty.
Show source
def comment=(comment)
@comment = case comment
when NilClass then ''
when RDoc::Markup::Document then comment
when RDoc::Comment then comment.normalize
else
if comment and not comment.empty? then
normalize_comment comment
else
if String === @comment and @comment.empty? then
@comment = RDoc::Encoding.change_encoding @comment, comment.encoding
end
@comment
end
end
end