class Rufo::Formatter
def visit_class(node)
def visit_class(node) # [:class, # name # superclass # [:bodystmt, body, nil, nil, nil]] _, name, superclass, body = node 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 maybe_inline_body body end