Noir::PythonRouteExtractor::Decoration
One match from scan_decorators.
router_name is the variable before .route / .get / …. path is
the string literal argument. extra_params is the raw tail of the
decorator call (everything after the path and its closing quote) so
callers can parse methods=[...] out of it; for method-specific
decorators the extractor fills it with methods=['METHOD'] so the
adapter can treat both idioms uniformly.
Constructors
Instance methods
extra_params
Sourcepath
Sourcerouter_name
Source