Documentation / @blazetrails/actionpack / Journey / Path / Pattern
Class: Pattern
Defined in: packages/actionpack/lib/action-dispatch/journey/path/pattern.ts:135
Constructors
Constructor
new Pattern(
ast,requirements,separators,anchored):Pattern
Defined in: packages/actionpack/lib/action-dispatch/journey/path/pattern.ts:149
Parameters
| Parameter | Type |
|---|---|
ast | Ast |
requirements | Matchers |
separators | string |
anchored | boolean |
Returns
Pattern
Properties
anchored
readonlyanchored:boolean
Defined in: packages/actionpack/lib/action-dispatch/journey/path/pattern.ts:139
ast
ast:
Ast|null
Defined in: packages/actionpack/lib/action-dispatch/journey/path/pattern.ts:136
names
readonlynames: readonlystring[]
Defined in: packages/actionpack/lib/action-dispatch/journey/path/pattern.ts:140
requirements
readonlyrequirements:Matchers
Defined in: packages/actionpack/lib/action-dispatch/journey/path/pattern.ts:138
spec
readonlyspec:Node
Defined in: packages/actionpack/lib/action-dispatch/journey/path/pattern.ts:137
Accessors
optionalNames
Get Signature
get optionalNames(): readonly
string[]
Defined in: packages/actionpack/lib/action-dispatch/journey/path/pattern.ts:200
Returns
readonly string[]
requiredNames
Get Signature
get requiredNames(): readonly
string[]
Defined in: packages/actionpack/lib/action-dispatch/journey/path/pattern.ts:193
Returns
readonly string[]
requirementsForMissingKeysCheck
Get Signature
get requirementsForMissingKeysCheck():
Record<string,RegExp>
Defined in: packages/actionpack/lib/action-dispatch/journey/path/pattern.ts:232
Returns
Record<string, RegExp>
source
Get Signature
get source():
string
Defined in: packages/actionpack/lib/action-dispatch/journey/path/pattern.ts:221
Returns
string
Methods
buildFormatter()
buildFormatter():
Format
Defined in: packages/actionpack/lib/action-dispatch/journey/path/pattern.ts:167
Returns
eagerLoadBang()
eagerLoadBang():
void
Defined in: packages/actionpack/lib/action-dispatch/journey/path/pattern.ts:171
Returns
void
isMatch()
isMatch(
other):boolean
Defined in: packages/actionpack/lib/action-dispatch/journey/path/pattern.ts:217
Parameters
| Parameter | Type |
|---|---|
other | string |
Returns
boolean
isRequirementsAnchored()
isRequirementsAnchored():
boolean
Defined in: packages/actionpack/lib/action-dispatch/journey/path/pattern.ts:178
Returns
boolean
match()
match(
other):MatchData|undefined
Defined in: packages/actionpack/lib/action-dispatch/journey/path/pattern.ts:211
Parameters
| Parameter | Type |
|---|---|
other | string |
Returns
MatchData | undefined
toRegexp()
toRegexp():
RegExp
Defined in: packages/actionpack/lib/action-dispatch/journey/path/pattern.ts:226
Returns
RegExp
Missing Rails Name
separators — PERMANENT