Sha256: 171dbbda8c2d5eb59f53faad1448f991ca6fbe7c9f0b540b9190b5f8beb33730
Contents?: true
Size: 596 Bytes
Versions: 8
Compression:
Stored size: 596 Bytes
Contents
module RubySpeech module GRXML ## # # The tag element is one of the valid expansion elements for the SGR rule element # # http://www.w3.org/TR/speech-grammar/#S2.6 # # # TODO: Make sure this is complete... # # class Tag < Element register :tag VALID_CHILD_TYPES = [Nokogiri::XML::Element, Nokogiri::XML::Text, String].freeze def <<(arg) raise InvalidChildError, "A Tag can only accept Strings as children" unless VALID_CHILD_TYPES.include? arg.class super end end # Tag end # GRXML end # RubySpeech
Version data entries
8 entries across 8 versions & 1 rubygems