W3cubDocs

/Elixir 1.4

Behaviour

This module has been deprecated.

Instead of defcallback/1 and defmacrocallback/1, the @callback and @macrocallback module attributes can be used (respectively). See the documentation for Module for more information on these attributes.

Instead of MyModule.__behaviour__(:callbacks), MyModule.behaviour_info(:callbacks) can be used.

Summary

Macros

defcallback(spec)

Defines a function callback according to the given type specification

defmacrocallback(spec)

Defines a macro callback according to the given type specification

Macros

defcallback(spec)

Defines a function callback according to the given type specification.

defmacrocallback(spec)

Defines a macro callback according to the given type specification.

© 2012–2017 Plataformatec
Licensed under the Apache License, Version 2.0.
https://hexdocs.pm/elixir/1.4.1/Behaviour.html