Method: YARD::I18n::Message#==

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

#==(other) ⇒ Boolean

Returns checks whether this message is equal to another.

Parameters:

  • other (Message)

    the Message to be compared.

Returns:

  • (Boolean)

    checks whether this message is equal to another.

Since:

  • 0.8.1



49
50
51
52
53
54
# File 'lib/yard/i18n/message.rb', line 49

def ==(other)
  other.is_a?(self.class) &&
    @id == other.id &&
    @locations == other.locations &&
    @comments == other.comments
end