class Rufo::ErbFormatter

def format

def format
  out = []
  process_erb do |(type, content)|
    if type == :code
      formatted_code = process_code(content)
      indented_code = formatted_code.lines.join(" " * current_column)
      out << " #{indented_code} "
    else
      out << content
    end
    update_lineno(out.last)
    update_column(out.last)
  end
  @result = out.join("")
end