Hacker News new | ask | show | jobs
by gls2ro 1441 days ago
There is a gem that does that used by Rails and multiple other gems:

https://github.com/fxn/zeitwerk

It is pretty easy to set it up in any Ruby project.