Class: PrettierPrint::SingleLine::IfBreakBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/prettier_print/single_line.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



107
108
109
# File 'lib/prettier_print/single_line.rb', line 107

def if_flat
  yield
end