struct Analyzer::Javascript::Fastify::AutoloadRoot

Overview

A directory @fastify/autoload registers. #dir_prefix records the config's dirNameRoutePrefix — when it is false, subdirectories do NOT contribute a route prefix (a file's own autoPrefix export provides the prefix instead).

Defined in:

analyzer/analyzers/javascript/fastify.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(path : String, dir_prefix : Bool) #

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(path _path = @path, dir_prefix _dir_prefix = @dir_prefix) #

[View source]
def dir_prefix : Bool #

def path : String #