View Source GitHooks.Tasks.MFA (git_hooks v0.7.0-pre)
Represents a {module, function, arity}
(a.k.a. mfa
) that will be evaluated
by the Kernel module.
An mfa
should be configured as {module, function, arity}
. The function of
the module will always receive the hook arguments and the arity is
expected to match the same number to avoid any unexpected behaviour.
See Elixir documentation for more information.
For example:
config :git_hooks,
hooks: [
pre_commit: [
{MyModule, :my_function, 1}
]
]
Link to this section Summary
Functions
Creates a new mfa
struct.
Link to this section Types
Specs
Represents an mfa
to be executed.