Class: PrettyPrint::Trim

Inherits:
Object
  • Object
show all
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



260
261
262
# File 'lib/syntax_tree/prettyprint.rb', line 260

def pretty_print(q)
  q.text("trim")
end