class Rufo::Formatter
def visit_def_with_receiver(node)
def visit_def_with_receiver(node) # [:defs, # [:vcall, [:@ident, "foo", [1, 5]]], # [:@period, ".", [1, 8]], # [:@ident, "bar", [1, 9]], # [:params, nil, nil, nil, nil, nil, nil, nil], # [:bodystmt, [[:void_stmt]], nil, nil, nil]] _, receiver, _, name, params, body = node consume_keyword "def" consume_space visit receiver skip_space_or_newline consume_call_dot skip_space_or_newline push_hash(node) do visit_def_from_name name, params, body end end