Class: SyntaxTree::XML::Node
- Inherits:
-
Object
- Object
- SyntaxTree::XML::Node
- Defined in:
- lib/syntax_tree/xml/nodes.rb
Overview
A parent node that contains a bit of shared functionality.
Direct Known Subclasses
Attribute, CharData, DocType, Document, Element, Element::ClosingTag, Element::OpeningTag, ExternalID, Misc, Prolog, Reference, Token
Instance Method Summary collapse
Instance Method Details
#format(q) ⇒ Object
41 42 43 |
# File 'lib/syntax_tree/xml/nodes.rb', line 41 def format(q) Format.new(q).visit(self) end |
#pretty_print(q) ⇒ Object
45 46 47 |
# File 'lib/syntax_tree/xml/nodes.rb', line 45 def pretty_print(q) PrettyPrint.new(q).visit(self) end |