Module alias
Copyright © 2021 Serge Aleynikov
Authors: Serge Aleynikov (saleyn@gmail.com).
Description
Creation of module aliasesFunction Index
create/2 | Create a module Alias for the given OrigMod module. |
create/3 |
Function Details
create/2
create(Alias, OrigMod) -> any()
Create a module Alias
for the given OrigMod
module.
This function is useful for creating in-memory Elixir wrapper modules without
needing to maintain persistent files with such wrappers.
IncFuns
argument can be all
or a list of {Fun, Arity}
values which
only export a subset of functions from the OrigMod
.
create/3
create(Alias, OrigMod, IncFuns) -> any()