struct Noir::PythonRouteExtractor::Decoration

Overview

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.

Defined in:

miniparsers/python_route_extractor.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(router_name : String, path : String, extra_params : String) #

[View source]

Instance Method Detail

def extra_params : String #

[View source]
def path : String #

[View source]
def router_name : String #

[View source]