I’m trying to get the following lines of code to work, but @export_all_files keeps getting a symbol with:
- the value
loaded_folder
- instead of the folder it should be loaded (i.e.
src
orconfig/initializers
)
Why is that happening?
loaded_folders = [ "src", "config/initializers" ]
for loaded_folder in loaded_folders
loaded_folder = "$(pwd())/$loaded_folder"
Julz.include_all_files(loaded_folder)
Julz.@export_all_files loaded_folder
end
yields the error
ERROR: LoadError: UndefVarError: loaded_folder not defined