I’ve read about the SCRIPT_LINES__ hash being able hold the contents of
a script in the interpreter, if it were loaded via “require”.
But, I’m not certain that all loaded (“required”) scripts get saved in
SCRIPT_LINES__.
Would the SCRIPT_LINES__ hash contain files that were required via the
API in rb_require()?
Also, is there anyway to access the script source, from within ruby, if
the script was loaded via rb_load_file()?
Or, in other words… once a script is loaded, no matter how, can that
source be extracted? If so, how?
Thanks.