Class: PrettyPrint::Trim
- Inherits:
-
Object
- Object
- PrettyPrint::Trim
- Defined in:
- lib/syntax_tree/prettyprint.rb
Overview
A node in the print tree that represents trimming all of the indentation of the current line, in the rare case that you need to ignore the indentation that you’ve already created. This node should be placed after a Breakable.
Instance Method Summary collapse
Instance Method Details
#pretty_print(q) ⇒ Object
258 259 260 |
# File 'lib/syntax_tree/prettyprint.rb', line 258 def pretty_print(q) q.text("trim") end |