View Source ExFactor.Extractor (ExFactor v0.4.1)
ExFactor.Extractor
finds the targetd function and places it in a different module.
Create the new (target) module path and file if necessary.
Link to this section Summary
Functions
Given a keyword list of opts, find the function in the specified source. Add the function (and any accociated attrs: @doc, @spec, ) into the target module. refactor it, the docs, specs, and any miscellaneous attrs proximate to the source function into the specified module.
Link to this section Functions
Given a keyword list of opts, find the function in the specified source. Add the function (and any accociated attrs: @doc, @spec, ) into the target module. refactor it, the docs, specs, and any miscellaneous attrs proximate to the source function into the specified module.
Required keys:
- :source_module
- :target_module
- :source_function
- :arity
Optional keys:
- :source_path Specify an alternate (non-standard) path for the source module
- :target_path Specify an alternate (non-standard) path for the destination module
- :dry_run Don't write any updates