Method: YARD::I18n::Message#add_comment

Defined in:
lib/yard/i18n/message.rb

#add_comment(comment) ⇒ void

This method returns an undefined value.

Adds a comment for the message.

Parameters:

  • comment (String)

    the comment for the message to be added.

Since:

  • 0.8.1



43
44
45
# File 'lib/yard/i18n/message.rb', line 43

def add_comment(comment)
  @comments << comment unless comment.nil?
end