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.crMacro Summary
-
_generate_config_providers
Generates class variable to store the providers, validators, interceptors, and the already parsed instance of the config class, if already parsed.
-
_generate_constructor
Generates the comprehensive and exhaustive
initialize
method for this configuration class. -
_generate_getters
Generates getter methods for the config class.
-
_validate_properties
Macro for validating all
option
properties are of valid types, being either something inAllTypes
, or another configuration class
Macro Detail
Generates class variable to store the providers, validators, interceptors, and the already parsed instance of the config class, if already parsed.
Generates the comprehensive and exhaustive initialize
method for this configuration class. All properties are included
Generates getter methods for the config class. The []
and []?
methods are also generated, using the config name dot notation
to retreive the value.