Class: ActionDispatch::Journey::Path::Pattern::UnanchoredRegexp
Do not use. This class is for internal use only.
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
|
|
Instance Chain:
|
|
Inherits: |
ActionDispatch::Journey::Path::Pattern::AnchoredRegexp
|
Defined in: | actionpack/lib/action_dispatch/journey/path/pattern.rb |
Constant Summary
Class Method Summary
AnchoredRegexp
- Inherited
Instance Method Summary
AnchoredRegexp
- Inherited
#accept, #visit_CAT, | |
#visit_DOT | Alias for AnchoredRegexp#visit_LITERAL. |
#visit_GROUP, #visit_LITERAL, #visit_OR, #visit_SLASH, #visit_STAR, #visit_SYMBOL |
::ActionDispatch::Journey::Visitors::Visitor
- Inherited
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