method

autoload

v1_9_3_125 - Show latest stable - Class: Kernel
autoload(p1, p2)
public

Registers filename to be loaded (using Kernel::require) the first time that module (which may be a String or a symbol) is accessed.

autoload(:MyModule, "/usr/local/lib/modules/my_module.rb")