Class: SyntaxTree::XML::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/syntax_tree/xml/nodes.rb

Overview

A parent node that contains a bit of shared functionality.

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