class Rufo::Formatter

def visit_class(node)

def visit_class(node)
  # [:class,
  #   name
  #   superclass
  #   [:bodystmt, body, nil, nil, nil]]
  _, name, superclass, body = node
  push_type(node) do
    consume_keyword "class"
    skip_space_or_newline
    write_space
    visit name
    if superclass
      skip_space_or_newline
      write_space
      consume_op "<"
      skip_space_or_newline
      write_space
      visit superclass
    end
    @inside_type_body = true
    visit body
  end
end