class Rufo::Formatter
def visit_path(node)
def visit_path(node) # Foo::Bar # # [:const_path_ref, # [:var_ref, [:@const, "Foo", [1, 0]]], # [:@const, "Bar", [1, 5]]] pieces = node[1..-1] pieces.each_with_index do |piece, i| visit piece unless last?(i, pieces) consume_op "::" skip_space_or_newline end end end