lib/yard/i18n/messages.rb in yard-0.9.5 vs lib/yard/i18n/messages.rb in yard-0.9.6

- old
+ new

@@ -1,5 +1,6 @@ +# frozen_string_literal: true module YARD module I18n # Acts as a container for {Message} objects. # # @since 0.8.1 @@ -40,10 +41,10 @@ # Checks if this messages list is equal to another messages list. # # @param [Messages] other the container to compare. # @return [Boolean] whether +self+ and +other+ is equivalence or not. def ==(other) - other.is_a?(self.class) and + other.is_a?(self.class) && @messages == other.messages end protected