3 ms·
You can write __MODULE__ to reference the current module. Or if the current module is a struct you can write %__MODULE__{}
by arrowsmith 3y ago
You can write __MODULE__ to reference the current module. Or if the current module is a struct you can write %__MODULE__{}
- conradfr 3y agoThat's not very pretty though ;) IIRC you can also write: alias __MODULE__