Sha256: f92bb8eef9e24a66e32969a5c34faaaaed328fc5aeb33fe6f0b87657cca472ff

Contents?: true

Size: 419 Bytes

Versions: 7

Compression:

Stored size: 419 Bytes

Contents

module RubySpeech
  module GRXML
    class Match
      attr_accessor :mode, :confidence, :utterance, :interpretation

      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) }
      end
      alias :== :eql?
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ruby_speech-2.0.1 lib/ruby_speech/grxml/match.rb
ruby_speech-1.1.0 lib/ruby_speech/grxml/match.rb
ruby_speech-1.0.2 lib/ruby_speech/grxml/match.rb
ruby_speech-1.0.1 lib/ruby_speech/grxml/match.rb
ruby_speech-1.0.0 lib/ruby_speech/grxml/match.rb
ruby_speech-0.5.1 lib/ruby_speech/grxml/match.rb
ruby_speech-0.5.0 lib/ruby_speech/grxml/match.rb