lib/ruby_speech/grxml/match.rb in ruby_speech-2.0.1 vs lib/ruby_speech/grxml/match.rb in ruby_speech-2.0.2

- old
+ new

@@ -6,10 +6,10 @@ def initialize(options = {}) options.each_pair { |k, v| self.send :"#{k}=", v } end def eql?(o) - o.is_a?(self.class) && [:mode, :confidence, :utterance, :interpretation].all? { |f| self.__send__(f) == o.__send__(f) } + o.instance_of?(self.class) && [:mode, :confidence, :utterance, :interpretation].all? { |f| self.__send__(f) == o.__send__(f) } end alias :== :eql? end end end