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



255
256
257
# File 'lib/syntax_tree/prettyprint.rb', line 255

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