method

visit_tree

Importance_0
v7.0.0 - Show latest stable - 0 notes - Class: Ast
visit_tree(formatted) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_dispatch/journey/nodes/node.rb, line 44
        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
Register or log in to add new notes.