add_comment(comment)
Add a comment to the task. If a comment already exists, separate the new comment with “ / ”.
# File lib/rake/task.rb, line 236 def add_comment(comment) if @full_comment @full_comment << " / " else @full_comment = '' end @full_comment << comment if @full_comment =~ /\A([^.]+?\.)( |$)/ @comment = $1 else @comment = @full_comment end end