defused v0.6.0 Defused.Module View Source
Use Defused.Module in a module to defuse all or some of its def:s
Examples
defmodule Module do
use Defused.Module, fuse: :fuse_name, only: [foo: 2]
def foo(a, b) do
# defused
end
def bar() do
# not defused
end
end
Options
:fuse- required, the name of the fuse:only- the defs that should be defused:except- the defs that should not be defusedOnly one of
:onlyand:exceptcan be used. If none of them are specified, all def:s will be defused