TypeClass v1.2.0 TypeClass.Utility.Attribute View Source

Helpers to module attributes

Link to this section Summary

Functions

Retrieve the compile-time value stored at the specified attribute key

Set up a compile time attribute key for getting and setting

Set a compile-time module attribute

Link to this section Functions

Link to this macro get(attribute) View Source (macro)
get(term, atom) :: any

Retrieve the compile-time value stored at the specified attribute key

Link to this macro register(attribute, opts \\ []) View Source (macro)
register(term, atom, []) :: no_return

Set up a compile time attribute key for getting and setting

Link to this macro set(value, list) View Source (macro)
set(term, atom, [{:as, atom}]) :: no_return

Set a compile-time module attribute