Is there a simple way of getting the struct name without the “Elixir.” prefix?
Edit: This is the best solution I have found, can anyone see an issue with it or provide a more succinct version?
Kernel.inspect(my_struct.__struct__)
Thanks!
Is there a simple way of getting the struct name without the “Elixir.” prefix?
Edit: This is the best solution I have found, can anyone see an issue with it or provide a more succinct version?
Kernel.inspect(my_struct.__struct__)
Thanks!