Reputation: 33062
I'm an Erlang beginer and I'd like to find a way to list all the methods available for a given module. What's the best way?
In my case, the module is ejabberd_odbc
.
Upvotes: 3
Views: 266
Reputation: 57678
You can call Modulename:module_info()
to get information on the module in a proplist form. To get exports only, call Modulename:module_info(exports)
.
Upvotes: 6
Reputation: 690
There is a tool you can install called edoc, whose manual is at: http://www.erlang.org/doc/man/edoc.html This allows javadoc style documentation to be generated for Erlang modules.
Also there is ejabberd_odbc documentation at: http://www.process-one.net/docs/ejabberd/devdoc/trunk/ejabberd_odbc.html
Upvotes: 0