Class Merb::BootLoader::LoadClasses
In: lib/merb-core/bootloader.rb
Parent: Merb::BootLoader

Load all classes inside the load paths.

This is used in conjunction with Merb::BootLoader::ReloadClasses to track files that need to be reloaded, and which constants need to be removed in order to reload a file.

This also adds the model, controller, and lib directories to the load path, so they can be required in order to avoid load-order issues.

Methods

Constants

LOADED_CLASSES = {}
MTIMES = {}

Public Class methods

"Better loading" of classes. If a class fails to load due to a NameError it will be added to the failed_classs stack.

Parameters

klasses<Array[Class]>:Classes to load.

Parameters

file<String>:The file to load.

Parameters

file<String>:The file to reload.

Parameters

const<Class>:The class to remove.

Load all classes inside the load paths.

[Validate]