Last active
February 27, 2017 10:36
-
-
Save blackode/16c886c03e6235c603d892a3a21c6c43 to your computer and use it in GitHub Desktop.
Mix Tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule Mix.Tasks.MyTasks.Functions do | |
use Mix.Task | |
def run([module_name]) do | |
module = Module.concat Elixir,module_name | |
data = apply(module, :__info__, [:functions]) | |
IO.inspect data | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment