Recompile in iex session
After editing a module, we can recompile the file containing that module inside of an iex session using the r
command.
#stuff.exs
defmodule Bar do
# code and stuff
end
defmodule Foo do
# code and stuff
end
iex> r Foo
# {:reloaded, Foo, [Bar, Foo] }
Tweet