Class: RubySpeech::GRXML::Element

Inherits:
Object
  • Object
show all
Includes:
RubySpeech::GenericElement
Defined in:
lib/ruby_speech/grxml/element.rb

Direct Known Subclasses

Grammar, Item, OneOf, Rule, Ruleref, Tag, Token

Instance Attribute Summary

Attributes included from RubySpeech::GenericElement

#parent

Class Method Summary collapse

Instance Method Summary collapse

Methods included from RubySpeech::GenericElement

#+, #<<, #==, #base_uri, #base_uri=, #build, #children, #clone, #create_node, #embed, #eql?, #eval_dsl_block, included, #inherit, #initialize, #inspect, #mass_assign, #method_missing, #namespace=, #namespace_href, #node, #nokogiri_children, #read_attr, #respond_to_missing?, #string, #to_s, #traverse, #version, #version=, #write_attr

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class RubySpeech::GenericElement

Class Method Details

.moduleObject



14
15
16
# File 'lib/ruby_speech/grxml/element.rb', line 14

def self.module
  GRXML
end

.namespaceObject



6
7
8
# File 'lib/ruby_speech/grxml/element.rb', line 6

def self.namespace
  GRXML_NAMESPACE
end

.root_elementObject



10
11
12
# File 'lib/ruby_speech/grxml/element.rb', line 10

def self.root_element
  Grammar
end

Instance Method Details

#regexp_contentObject

:nodoc:



24
25
26
# File 'lib/ruby_speech/grxml/element.rb', line 24

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

#to_docObject



20
21
22
# File 'lib/ruby_speech/grxml/element.rb', line 20

def to_doc
  document
end