Method: Kernel#load

Defined in:
eval.c

#load(filename, wrap = false) ⇒ true

Loads and executes the Ruby program in the file filename. If the filename does not resolve to an absolute path, the file is searched for in the library directories listed in $:. If the optional wrap parameter is true, the loaded script will be executed under an anonymous module, protecting the calling program’s global namespace. In no circumstance will any local variables in the loaded file be propagated to the loading environment.



6917
6918
6919
# File 'eval.c', line 6917

static VALUE
rb_f_load(argc, argv)
int argc;