ExExport (ex_export v0.2.0)

This module inspects another module for public functions and generates the defdelegate needed to add them to the local modules name space

Link to this section Summary

Functions

require in the module and them call export for each module you want to import. ## Examples defmodule Sample do

Link to this section Functions

Link to this macro

export(module, opts \\ [])

(macro)

require in the module and them call export for each module you want to import. ## Examples defmodule Sample do

require ExExport
alias  Sample.Actions.Greet

ExExport.export(Greet)
ExExport.export(Sample.Actions.Farewell)

end

Options

  • :only - (since v0.2.0) a list of [function: arity] only matching functions will be delegated
  • :exclude - (since v0.2.0) a list of [function: arity] matching functions will NOT be delegated