Noir::JSRoutePattern
JSRoutePattern represents a JavaScript framework route pattern
Constructors
Instance methods
method
Sourceparams
Sourcepath
Sourceraw_path
Sourceregex=(regex : Bool)
A RegExp literal route (router.get(/^\/item\/(\d+)$/, ...)); its
path is the pattern, which the extractor marks kind: "regex".
regex?
A RegExp literal route (router.get(/^\/item\/(\d+)$/, ...)); its
path is the pattern, which the extractor marks kind: "regex".
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.