Method: YARD::I18n::Messages#==

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

#==(other) ⇒ Boolean

Checks if this messages list is equal to another messages list.

Parameters:

  • other (Messages)

    the container to compare.

Returns:

  • (Boolean)

    whether self and other is equivalence or not.

Since:

  • 0.8.1



45
46
47
48
# File 'lib/yard/i18n/messages.rb', line 45

def ==(other)
  other.is_a?(self.class) &&
    @messages == other.messages
end