method
visit_tree
v8.1.1 -
Show latest stable
- Class:
ActionDispatch::Journey::Ast
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