Sha256: d70b871bf1b281cf1514263169ab21db072f00546ccc46fc606df22d4aa3c835

Contents?: true

Size: 536 Bytes

Versions: 2

Compression:

Stored size: 536 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

2 entries across 2 versions & 1 rubygems

Version Path
ruby_speech-2.0.2 lib/ruby_speech/grxml/element.rb
ruby_speech-2.0.1 lib/ruby_speech/grxml/element.rb