How do one extract the ast of a module, function.. in runtime in elixir ?
Is there a way to do this in elixir ?
defmoudle Car do
def beep do
:beep
end
end
iex > Car."way to get the ast of the 'beep' function"
{:def, [context: Elixir, import: Kernel],
[{:beep, [context: ...], ...}, [do: :beep]]}
Aucun commentaire:
Enregistrer un commentaire