Noir::TreeSitterPythonRouteExtractor::Decoration
A @<router>.route(...) or @<router>.<method>(...) decorator, paired
with the def/class it applies to.
Constructors
Instance methods
attribute_name
Sourcedecorator_line
Sourcedef_line
Sourcedef_name
Sourcekeywords
Every keyword argument: string literals decoded, anything else as
source text (auth="user" → "user", csrf=False → "False").
methods
Sourcepath
Sourcepaths
Sourcerouter_name
Sourcerule_wrapper
The function a path came wrapped in (route(org_scoped_rule("/x"))
→ "org_scoped_rule"; path is "/x"), empty for a literal path. Only
set when the caller asks for rule_wrappers: whether the wrapper
serves its argument unchanged is for the caller to judge from the
wrapper's definition.