Class: XML::DOM::Visitor

Inherits:
Object
  • Object
show all
Defined in:
lib/xml/dom/visitor.rb

Overview

Skeleton visitor

Instance Method Summary collapse

Instance Method Details

#visit_CDATASection(text, *rest) ⇒ Object

— Visitor#visit_CDATASection(text, *rest)

callback method.



75
76
# File 'lib/xml/dom/visitor.rb', line 75

def visit_CDATASection(text, *rest)
end

#visit_Comment(comment, *rest) ⇒ Object

— Visitor#visit_Comment(comment, *rest)

callback method.



83
84
# File 'lib/xml/dom/visitor.rb', line 83

def visit_Comment(comment, *rest)
end

#visit_Document(grove, *rest) ⇒ Object

Methods

--- Visitor#visit_Document(grove, *rest)

callback method.



49
50
51
# File 'lib/xml/dom/visitor.rb', line 49

def visit_Document(grove, *rest)
  grove.children_accept(self, *rest)
end

#visit_Element(element, *rest) ⇒ Object

— Visitor#visit_Element(element, *rest)

callback method.



58
59
60
# File 'lib/xml/dom/visitor.rb', line 58

def visit_Element(element, *rest)
  element.children_accept(self, *rest)
end

#visit_ProcessingInstruction(pi, *rest) ⇒ Object

— Visitor#visit_ProcessingInstruction(pi, *rest)

callback method.



91
92
# File 'lib/xml/dom/visitor.rb', line 91

def visit_ProcessingInstruction(pi, *rest)
end

#visit_Text(text, *rest) ⇒ Object

— Visitor#visit_Text(text, *rest)

callback method.



67
68
# File 'lib/xml/dom/visitor.rb', line 67

def visit_Text(text, *rest)
end