method
comment=
ruby latest stable - Class:
RDoc ::ClassModule
comment=(comment)public
This method is deprecated, use #add_comment instead.
Appends comment to the current comment, but separated by a rule. Works more like +=.
# File lib/rdoc/class_module.rb, line 205
def comment= comment # :nodoc:
comment = case comment
when RDoc::Comment then
comment.normalize
else
normalize_comment comment
end
comment = "#{@comment}\n---\n#{comment}" unless @comment.empty?
super comment
end