Extra v0.2.0 Behaviour.Extra

Module for useful functions and assertions for Behaviours.

Link to this section Summary

Functions

Asserts that the passed behaviour’s callbacks are all implemented by the passed module

Link to this section Types

Link to this type behaviour()
behaviour() :: module

Link to this section Functions

Link to this function assert_impl!(behaviour, module)
assert_impl!(behaviour, module) :: :ok | no_return

Asserts that the passed behaviour’s callbacks are all implemented by the passed module.

Throws an ArgumentError if any are not implemented.