Module alias

Copyright © 2021 Serge Aleynikov

Authors: Serge Aleynikov (saleyn@gmail.com).

Description

Creation of module aliases

Function Index

create/2Create 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()