# File lib/rack/mount/regexp_with_named_groups.rb, line 56 def named_captures named_captures = {} names.each_with_index { |n, i| named_captures[n] = [i+1] if n } named_captures end