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