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

Inherits:
AnchoredRegexp show all
Defined in:
actionpack/lib/action_dispatch/journey/path/pattern.rb

Overview

:nodoc:

Constant Summary

Constants inherited from Visitors::Visitor

Visitors::Visitor::DISPATCH_CACHE

Instance Method Summary collapse

Methods inherited from AnchoredRegexp

#initialize, #visit_CAT, #visit_GROUP, #visit_LITERAL, #visit_SLASH, #visit_STAR, #visit_SYMBOL

Constructor Details

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

Instance Method Details

#accept(node) ⇒ Object


128
129
130
# File 'actionpack/lib/action_dispatch/journey/path/pattern.rb', line 128

def accept(node)
  %r{\A#{visit node}}
end