I’m trying to create a table showing the relationship between various Elixir modules. As a starting place, I wanted to create a list of all these modules.
I tried
modules = for {name,_} <- :code.all_loaded,
Regex.match?(~r/^[A-Z]/, atom_to_binary(name)),
do: name
but (no surprise) it only lists modules that have been loaded.
Is there a decent programatic way of doing this?
Dave
Hi Dave,
:erl_prim_loader can be used to load all modules. Take a look at how Mix loads all modules to find all mix tasks:
--
You received this message because you are subscribed to the Google Groups "elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-co...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.