method

visit

rails latest stable - Class: ActionDispatch::Journey::Visitors::Formatter

Method deprecated or moved

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

visit(node, optional = false)
private

No documentation available.

# File actionpack/lib/action_dispatch/journey/visitors.rb, line 124
          def visit(node, optional = false)
            case node.type
            when :LITERAL, :SLASH, :DOT
              node.left
            when :STAR
              visit_STAR(node.left)
            when :GROUP
              visit(node.left, true)
            when :CAT
              visit_CAT(node, optional)
            when :SYMBOL
              visit_SYMBOL(node, node.to_sym)
            end
          end