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.cr

Macro Summary

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.


[View source]
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.


[View source]