Skip to content

Documentation


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 ​

ParameterType
astAst
requirementsMatchers
separatorsstring
anchoredboolean

Returns ​

Pattern

Properties ​

anchored ​

readonly anchored: 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 ​

readonly names: readonly string[]

Defined in: packages/actionpack/lib/action-dispatch/journey/path/pattern.ts:140


requirements ​

readonly requirements: Matchers

Defined in: packages/actionpack/lib/action-dispatch/journey/path/pattern.ts:138


spec ​

readonly spec: 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 ​

Format


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 ​

ParameterType
otherstring

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 ​

ParameterType
otherstring

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