class Rufo::Formatter

def capture_output

def capture_output
  old_output = @output
  @output = +""
  yield
  result = @output
  @output = old_output
  result
end