Warlock.ModuleUtils (warlock v0.0.1)
Link to this section Summary
Functions
Replaces a fragment of a module name, e.g App.Controllers.My -> App.Schemas.My
Replaces and slices a module name, e.g App.Controllers.My -> App.Repo
Link to this section Functions
Link to this function
atom_name(module)
Link to this function
name(module)
Link to this function
replace_at(module, replacement, index \\ 1)
Replaces a fragment of a module name, e.g App.Controllers.My -> App.Schemas.My
The default index is 1.
Link to this function
slice_replace(module, replacement, index \\ 1)
Replaces and slices a module name, e.g App.Controllers.My -> App.Repo