module Power::Macros::Import
Overview
Power::Macros::Import contains the import mechanism macros
which use the alias keyword to abstract the importing
and reduce the LOC.
Direct including types
Defined in:
power/macros/import.crMacro Summary
-
import(object, **kwargs)
Requires an
:askeyword argument to function properly, it simply aliases the as keyword argument module/class to the first argument. -
import(module_name, class_names)
Requires a module name as a first argument and a class array, it simply iterates through the classes and aliases them to the module.
Macro Detail
macro import(object, **kwargs)
#
Requires an :as keyword argument to function
properly, it simply aliases the as keyword argument module/class
to the first argument.
macro import(module_name, class_names)
#
Requires a module name as a first argument and a class array, it simply iterates through the classes and aliases them to the module.