Class: PrettyPrint::BreakParent
- Inherits:
-
Object
- Object
- PrettyPrint::BreakParent
- Defined in:
- lib/syntax_tree/prettyprint.rb
Overview
A node in the print tree that forces the surrounding group to print out in the “break” mode as opposed to the “flat” mode. Useful for when you need to force a newline into a group.
Instance Method Summary collapse
Instance Method Details
#pretty_print(q) ⇒ Object
135 136 137 |
# File 'lib/syntax_tree/prettyprint.rb', line 135 def pretty_print(q) q.text("break-parent") end |