I am working on an API that needs to load all of the .rb files in its current directory and all subdirectories. Currently, I am entering a new require statement for each file that I add but I would like to make it where I only have to place the file in one of the subdirectories and have it automatically added.
Is there a standard command to do this?
die.rb
in your project? If the project is already old and has collected junk I would agree this is dangerous. For a newish project, however, it's a sensible move that makes it hard for somebody to accidentally adddie.rb
to the codebase (it would fail on load/bugs made clear sooner rather than later)