Basically, I have this module called MyModule in a file called
mymodule.exs. Now, I want to call this module and use its functions in another file containing the module
I tried using
alias MyModule and then tried calling
MyModule.myfunction(), however, I get the error
(module MyModule is not available).
There is also a thing called
Code.require_file, however, I couldn’t understand how that works or if that is even applicable over here as well.
Any help will be largely appreciated. Thank you!