123456789_123456789_123456789_123456789_123456789_

Class: ActionDispatch::Journey::Path::Pattern::UnanchoredRegexp

Do not use. This class is for internal use only.

Constant Summary

::ActionDispatch::Journey::Visitors::Visitor - Inherited

DISPATCH_CACHE

Class Method Summary

AnchoredRegexp - Inherited

Instance Method Summary

Constructor Details

This class inherits a constructor from ActionDispatch::Journey::Path::Pattern::AnchoredRegexp

Instance Method Details

#accept(node)

[ GitHub ]

  
# File 'actionpack/lib/action_dispatch/journey/path/pattern.rb', line 118

def accept(node)
  path = visit node
  path == "/" ? %r{\A/} : %r{\A#{path}(?:\b|\Z|/)}
end