struct Noir::TreeSitterPythonRouteExtractor::Decoration

Overview

A @<router>.route(...) or @<router>.<method>(...) decorator, paired with the def/class it applies to.

Defined in:

miniparsers/python_route_extractor_ts.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(router_name : String, attribute_name : String, path : String, methods : Array(String), decorator_line : Int32, def_line : Int32, def_name : String) #

[View source]

Instance Method Detail

def attribute_name : String #

[View source]
def decorator_line : Int32 #

[View source]
def def_line : Int32 #

[View source]
def def_name : String #

[View source]
def methods : Array(String) #

[View source]
def path : String #

[View source]
def router_name : String #

[View source]