class ActionDispatch::Journey::Visitors::String

def nary(node, seed)

def nary(node, seed)
  last_child = node.children.last
  node.children.inject(seed) { |s, c|
    string = visit(c, s)
    string << "|" unless last_child == c
    string
  }
end