class ActionDispatch::Journey::Path::Pattern::UnanchoredRegexp

Experimental RBS support (using type sampling data from the type_fusion project).

# sig/action_dispatch/journey/path/pattern.rbs

class ActionDispatch::Journey::Path::Pattern::UnanchoredRegexp < ActionDispatch::Journey::Path::Pattern::AnchoredRegexp
  def accept: (ActionDispatch::Journey::Nodes::Cat node) -> Regexp
end

:nodoc:

def accept(node)

Experimental RBS support (using type sampling data from the type_fusion project).

def accept: (ActionDispatch::Journey::Nodes::Cat node) -> Regexp

This signature was generated using 1 sample from 1 application.

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