View Source Application.Module.Macros (application_module v0.4.0)
This module contains all the macros privately used by the Application.Module
module.
Because we don't want these macros to be user-facing when users do use Application.Module
,
we extract them into a different module.
Summary
Functions
This macro returns an AST that defines the functions that are defined in the behaviour module.
This macro ensures the given module has been loaded.
This macro returns an AST containing a set of utility functions
that need to be incorporated into the module that uses the Application.Module
module.
Functions
@spec define_behaviour_functions(env :: Macro.Env.t()) :: any()
This macro returns an AST that defines the functions that are defined in the behaviour module.
This macro ensures the given module has been loaded.
@spec functions() :: any()
This macro returns an AST containing a set of utility functions
that need to be incorporated into the module that uses the Application.Module
module.
Functions
mock_module/0
: Returns the mock module.implementation_module/0
: Returns the implementation module.behaviour_module/0
: Returns the behaviour module.get_application_env_module/0
: Returns the module that has been set in the environment (if any).