Method: Kernel#autoload
- Defined in:
- eval.c
#autoload ⇒ nil
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")
8099 8100 8101 |
# File 'eval.c', line 8099 static VALUE rb_f_autoload(obj, sym, file) VALUE obj; |