Class: XML::DOM::Visitor
- Inherits:
-
Object
- Object
- XML::DOM::Visitor
- Defined in:
- lib/xml/dom/visitor.rb
Overview
Skeleton visitor
Instance Method Summary collapse
-
#visit_CDATASection(text, *rest) ⇒ Object
— Visitor#visit_CDATASection(text, *rest).
-
#visit_Comment(comment, *rest) ⇒ Object
— Visitor#visit_Comment(comment, *rest).
-
#visit_Document(grove, *rest) ⇒ Object
Methods.
-
#visit_Element(element, *rest) ⇒ Object
— Visitor#visit_Element(element, *rest).
-
#visit_ProcessingInstruction(pi, *rest) ⇒ Object
— Visitor#visit_ProcessingInstruction(pi, *rest).
-
#visit_Text(text, *rest) ⇒ Object
— Visitor#visit_Text(text, *rest).
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
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 |