Message is a translation target message. It has message ID as {id} and some properties {locations} and {comments}.
@since 0.8.1
@param [Message] other the Message to be compared. @return [Boolean] checks whether this message is equal to another.
# File lib/yard/i18n/message.rb, line 48 def ==(other) other.is_a?(self.class) and @id == other.id and @locations == other.locations and @comments == other.comments end
Adds a comment for the message.
@param [String] comment the comment for the message to be added. @return [void]
# File lib/yard/i18n/message.rb, line 42 def add_comment(comment) @comments << comment unless comment.nil? end
Adds location information for the message.
@param [String] path the path where the message appears. @param [Integer] line the line number where the message appears. @return [void]
# File lib/yard/i18n/message.rb, line 34 def add_location(path, line) @locations << [path, line] end
Generated with the Darkfish Rdoc Generator 2.
@return [Set] the set of comments for the messages.