class

Dependencies::LoadingModule

v1.0.0 - Show latest stable - Superclass: Object

LoadingModules implement namespace-safe dynamic loading. They support automatic loading via const_missing, allowing contained items to be automatically loaded when required. No extra syntax is required, as expressions such as Controller::Admin::UserController load the relavent files automatically.

Ruby-style modules are supported, as a folder named ‘submodule’ will load ‘submodule.rb’ when available.

Files

  • activesupport/lib/active_support/dependencies.rb