Class: SyntaxTree::CSS::Node

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

Overview

A parent class for all of the various nodes in the tree. Provides common functionality between them.

Instance Method Summary collapse

Instance Method Details

#format(q) ⇒ Object



31
32
33
# File 'lib/syntax_tree/css/nodes.rb', line 31

def format(q)
  Format.new(q).visit(self)
end

#pretty_print(q) ⇒ Object



35
36
37
# File 'lib/syntax_tree/css/nodes.rb', line 35

def pretty_print(q)
  PrettyPrint.new(q).visit(self)
end