add `protect` shortcut for behaviours and implementations in the same module
msz opened this issue · comments
In some setups behaviours and default implementations are put together in one module. In such cases, the call to protect/3
is
Hammox.protect(SomeModule, SomeModule, foo: 1)
We can add a shorthand version
Hammox.protect(SomeModule, foo: 1)
which will expand to that.
Closed in #51.