Hi all Does Ruby have anything similar to PHP's autoload()?
Out of interest, why is this such an important feature?
Its not overly important, its just a really nice feature. Good for MVC frameworks when you don't want to have to include lots of files and have your classes load when you instantiate them.
Well if you use rails, if you stick to the Rails way of doing stuff you don't need to use require really
http://www.rubycentral.com/book/ref_...ernel.autoload
Forum Rules
Bookmarks