method
accept
v7.2.3 -
Show latest stable
- Class:
ActionDispatch::Journey::Path::Pattern::UnanchoredRegexp
accept(node)public
No documentation available.
# File actionpack/lib/action_dispatch/journey/path/pattern.rb, line 118
def accept(node)
path = visit node
path == "/" ? %{\A/} : %{\A#{path}(?:\b|\Z|/)}
end