Skip to content

Instantly share code, notes, and snippets.

@blackode
Last active February 27, 2017 10:36
Show Gist options
  • Save blackode/16c886c03e6235c603d892a3a21c6c43 to your computer and use it in GitHub Desktop.
Save blackode/16c886c03e6235c603d892a3a21c6c43 to your computer and use it in GitHub Desktop.
Mix Tasks
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