Class: PrettyPrint::SingleLine::IfBreakBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/syntax_tree/prettyprint.rb

Overview

A class that wraps the ability to call #if_flat. The contents of the #if_flat block are executed immediately, so effectively this class and the #if_break method that triggers it are unnecessary, but they’re here to maintain compatibility.

Instance Method Summary collapse

Instance Method Details

#if_flatObject



451
452
453
# File 'lib/syntax_tree/prettyprint.rb', line 451

def if_flat
  yield
end