class

Noir::JSRoutePattern

Inherits Reference < Object

JSRoutePattern represents a JavaScript framework route pattern

Constructors

new(method : String, path : String, raw_path : String | Nil = nil, start_pos : Int32 = -1)
Source

Instance methods

method
Source
params
Source
path
Source
path=(path : String)
Source
push_param(param : Param)
Source
raw_path
Source
regex=(regex : Bool)

A RegExp literal route (router.get(/^\/item\/(\d+)$/, ...)); its path is the pattern, which the extractor marks kind: "regex".

Source
regex?

A RegExp literal route (router.get(/^\/item\/(\d+)$/, ...)); its path is the pattern, which the extractor marks kind: "regex".

Source
start_pos

CHAR index of the route's receiver token — or, for a link of a route('/x').get(...).post(...) chain, of that link's own verb, so each verb reports its own line and handler.

Source