method

visit_tree

visit_tree(formatted)
private

No documentation available.

# File actionpack/lib/action_dispatch/journey/nodes/node.rb, line 45
        def visit_tree(formatted)
          tree.each do |node|
            if node.symbol?
              path_params << node.to_sym
              names << node.name
              symbols << node
            elsif node.star?
              stars << node

              if formatted != false
                # Add a constraint for wildcard route to make it non-greedy and match the
                # optional format part of the route by default.
                wildcard_options[node.name.to_sym] ||= /.+?/
              end
            end

            if node.terminal?
              terminals << node
            end
          end
        end