List all calls from erlang module

I'm starting Erlang, and I would like to find a way to list all the methods available for this module. What is the best way? In my case, the module ejabberd_odbc.

+3
source share
3 answers

You can call Modulename:module_info()to get information about the module in the form of a leaf. To get only export, call Modulename:module_info(exports).

+6
source

I always check the section exportsin the module source.

0
source

Source: https://habr.com/ru/post/1773374/


All Articles