class Rufo::Formatter

def visit_case(node)

def visit_case(node)
  # [:case, cond, case_when]
  _, cond, case_when = node
  consume_keyword "case"
  if cond
    consume_space
    visit cond
  end
  consume_end_of_line
  write_indent
  visit case_when
  write_indent
  consume_keyword "end"
end