struct Noir::LocatorKeyNamespace

Overview

A family of keys minted at runtime under one declared prefix (<prefix>:<file> / <prefix>:<file>:<function>). Declared once; the minted keys inherit its lifecycle and are cleared by prefix.

Exists for the Express router-prefix keys, which are the one family whose names are not knowable ahead of time — and which, under a string-constants design, would have stayed invisible to any enforcement.

Defined in:

models/locator_key.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(prefix : String, lifecycle : LocatorKey::Lifecycle, owner : String) #

[View source]

Instance Method Detail

def key(*parts : String) : LocatorKey(Array(String)) #

[View source]
def lifecycle : LocatorKey::Lifecycle #

[View source]
def matches?(name : String) : Bool #

[View source]
def owner : String #

[View source]
def prefix : String #

[View source]