No documentation

# File actionpack/lib/action_controller/routing/recognition_optimisation.rb, line 70def segment_tree(routes)tree=[0]i=-1routes.eachdo|route|i+=1# not fast, but runs only oncesegments=to_plain_segments(route.segments.inject(""){|str,s|str<<s.to_s})node=treesegments.eachdo|seg|seg=:dynamicifseg&&seg[0]==?:node<<[seg,[i]]ifnode.empty?||node[node.size-1][0]!=segnode=node[node.size-1][1]endendtreeend