Sha256: 8495cfd575d650427ead35d920fcc639483e2899608c931f5f450e3388753296

Contents?: true

Size: 543 Bytes

Versions: 6

Compression:

Stored size: 543 Bytes

Contents

require 'active_support/core_ext/class/attribute'

module RubySpeech
  module GRXML
    class Element < Niceogiri::XML::Node
      def self.namespace
        GRXML_NAMESPACE
      end

      def self.root_element
        Grammar
      end

      def self.module
        GRXML
      end

      alias_method :nokogiri_children, :children

      alias :to_doc :document

      include GenericElement

      def regexp_content # :nodoc:
        "(#{children.map(&:regexp_content).join})"
      end
    end # Element
  end # GRXML
end # RubySpeech

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ruby_speech-2.1.2-java lib/ruby_speech/grxml/element.rb
ruby_speech-2.1.2 lib/ruby_speech/grxml/element.rb
ruby_speech-2.1.1-java lib/ruby_speech/grxml/element.rb
ruby_speech-2.1.1 lib/ruby_speech/grxml/element.rb
ruby_speech-2.1.0-java lib/ruby_speech/grxml/element.rb
ruby_speech-2.1.0 lib/ruby_speech/grxml/element.rb