Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

With 'autoload' being deprecated, what should devs use in the meantime?

Tags:

ruby

autoload

Having read a couple weeks ago that autoload is officially deprecated, Matz discourages use of it. What is to replace it? What should developers do instead? I used it in some command-line gems to save unnecessary loading of libs that may never be used, as well as in JRuby to prevent the same for .jar files.

like image 611
Nick Klauer Avatar asked Dec 01 '11 16:12

Nick Klauer


1 Answers

I've seen people use the EasyLoad gem, it claims to be a autoload alternative. It loads based on directory module naming convention.

like image 172
Donavan White Avatar answered Oct 13 '22 13:10

Donavan White