Igniter.Code.Module (igniter v0.1.3)
Utilities for working with Elixir modules
Summary
Functions
Given a suffix, returns a module name with the prefix of the current project
The module name prefix based on the mix project's module name
Moves the zipper to the body of a module that use
s the provided module (or one of the provided modules).
Moves the zipper to the use
statement for a provided module.
Parses a string into a module name
Returns the idiomatic file location for a given module
Functions
module_name(suffix)
Given a suffix, returns a module name with the prefix of the current project
module_name_prefix()
@spec module_name_prefix() :: module()
The module name prefix based on the mix project's module name
move_to_def(zipper, fun, arity)
move_to_defp(zipper, fun, arity)
move_to_module_using(zipper, one_of_modules)
@spec move_to_module_using(Sourceror.Zipper.t(), module() | [module()]) :: {:ok, Sourceror.Zipper.t()} | :error
Moves the zipper to the body of a module that use
s the provided module (or one of the provided modules).
move_to_use(zipper, module)
Moves the zipper to the use
statement for a provided module.
parse(module_name)
Parses a string into a module name
proper_location(module_name)
Returns the idiomatic file location for a given module