method

visit_SYMBOL

rails latest stable - Class: ActionDispatch::Journey::Path::Pattern::RegexpOffsets

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v4.2.9) is shown here.

visit_SYMBOL(node)
public

No documentation available.

# File actionpack/lib/action_dispatch/journey/path/pattern.rb, line 71
          def visit_SYMBOL(node)
            node = node.to_sym

            if @matchers.key?(node)
              re = /#{@matchers[node]}|/
              @capture_count.push((re.match('').length - 1) + (@capture_count.last || 0))
            else
              @capture_count << (@capture_count.last || 0)
            end
          end