Class: SyntaxTree::ERB::Node
- Inherits:
-
Object
- Object
- SyntaxTree::ERB::Node
show all
- Defined in:
- lib/syntax_tree/erb/nodes.rb
Overview
A parent node that contains a bit of shared functionality.
Instance Method Summary
collapse
Instance Method Details
7
8
9
|
# File 'lib/syntax_tree/erb/nodes.rb', line 7
def format(q)
Format.new(q).visit(self)
end
|
#pretty_print(q) ⇒ Object
11
12
13
|
# File 'lib/syntax_tree/erb/nodes.rb', line 11
def pretty_print(q)
PrettyPrint.new(q).visit(self)
end
|
#skip? ⇒ Boolean
19
20
21
|
# File 'lib/syntax_tree/erb/nodes.rb', line 19
def skip?
false
end
|
#without_new_line ⇒ Object
15
16
17
|
# File 'lib/syntax_tree/erb/nodes.rb', line 15
def without_new_line
self
end
|