Zeitwerk & Module Autoloading in Ruby (Explained Clearly)
This article explains class & module autoloading in Ruby. Including the new “Zeitwerk” gem which is part of Rails 6. Let’s start with a question… How do we bring together multiple source code files into one? We require them. Requiring a file makes Ruby read it & run the code inside. But if we have … Read more