module CrConfig::Macros

Overview

This module houses the macros for the config class itself, including the static methods used for configuring the parsing, validating, and retreiving of config values.

Direct including types

Defined in:

cr-config/config_macros.cr

Macro Summary

Macro Detail

macro _generate_config_providers #

Generates class variable to store the providers, validators, interceptors, and the already parsed instance of the config class, if already parsed.


[View source]
macro _generate_constructor #

Generates the comprehensive and exhaustive initialize method for this configuration class. All properties are included


[View source]
macro _generate_getters #

Generates getter methods for the config class. The [] and []? methods are also generated, using the config name dot notation to retreive the value.


[View source]
macro _validate_properties #

Macro for validating all option properties are of valid types, being either something in AllTypes, or another configuration class


[View source]