Class: PrettierPrint::BreakParent
- Inherits:
-
Object
- Object
- PrettierPrint::BreakParent
- Defined in:
- lib/prettier_print.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
134 135 136 |
# File 'lib/prettier_print.rb', line 134 def pretty_print(q) q.text("break-parent") end |