class Rufo::Formatter

def flush_heredocs

def flush_heredocs
  printed = false
  until @heredocs.empty?
    heredoc, tilde = @heredocs.first
    @heredocs.shift
    @current_heredoc = [heredoc, tilde]
    visit_string_literal_end(heredoc)
    @current_heredoc = nil
    printed          = true
  end
end