Sha256: 0249bfd2a2070546d33daec0cb73bc0676e2a6c760628f0a137217d736fd8475

Contents?: true

Size: 426 Bytes

Versions: 25

Compression:

Stored size: 426 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.instance_of?(self.class) && [:mode, :confidence, :utterance, :interpretation].all? { |f| self.__send__(f) == o.__send__(f) }
      end
      alias :== :eql?
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
ruby_speech-3.0.1-java lib/ruby_speech/grxml/match.rb
ruby_speech-3.0.1 lib/ruby_speech/grxml/match.rb
ruby_speech-3.0.0-java lib/ruby_speech/grxml/match.rb
ruby_speech-3.0.0 lib/ruby_speech/grxml/match.rb
ruby_speech-2.4.0-java lib/ruby_speech/grxml/match.rb
ruby_speech-2.4.0 lib/ruby_speech/grxml/match.rb
ruby_speech-2.3.2-java lib/ruby_speech/grxml/match.rb
ruby_speech-2.3.2 lib/ruby_speech/grxml/match.rb
ruby_speech-2.3.1-java lib/ruby_speech/grxml/match.rb
ruby_speech-2.3.1 lib/ruby_speech/grxml/match.rb
ruby_speech-2.3.0-java lib/ruby_speech/grxml/match.rb
ruby_speech-2.3.0 lib/ruby_speech/grxml/match.rb
ruby_speech-2.2.2-java lib/ruby_speech/grxml/match.rb
ruby_speech-2.2.2 lib/ruby_speech/grxml/match.rb
ruby_speech-2.2.1-java lib/ruby_speech/grxml/match.rb
ruby_speech-2.2.1 lib/ruby_speech/grxml/match.rb
ruby_speech-2.2.0-java lib/ruby_speech/grxml/match.rb
ruby_speech-2.2.0 lib/ruby_speech/grxml/match.rb
ruby_speech-2.1.2-java lib/ruby_speech/grxml/match.rb
ruby_speech-2.1.2 lib/ruby_speech/grxml/match.rb