method

format_comment

ruby latest stable - Class: RDoc::Generator::POT::POEntry

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2_2_9) is shown here.

format_comment(mark, comment)
private

No documentation available.

# File lib/rdoc/generator/pot/po_entry.rb, line 71
  def format_comment mark, comment
    return '' unless comment
    return '' if comment.empty?

    formatted_comment = ''
    comment.each_line do |line|
      formatted_comment << "#{mark} #{line}"
    end
    formatted_comment << "\n" unless formatted_comment.end_with?("\n")
    formatted_comment
  end