[erlang-questions] Is there a way to test on a module's behaviors?

Francesco Mazzoli <>
Fri May 11 01:25:06 CEST 2012


You can use `module_info/0', amongst the other things it'll return a 
list of module attributes, including the behaviors.

Francesco.

On 11/05/12 00:15, Andrew Berman wrote:
> I was wondering if there is a way to test on behaviors of a module.
>   Essentially what I'm looking to do is say, if this module has x
> behavior, do this.  I couldn't find any way to get at the module's
> behaviors, did I miss something or is this something that cannot be done?
>
> Thanks!
>
> Andrew
>
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions




More information about the erlang-questions mailing list