private void loadScript(Ruby runtime, InputStream is, boolean wrap) {
runtime.loadFile(scriptName, is, wrap);
}
private void loadClass(Ruby runtime, InputStream is, boolean wrap) {
Script script = CompiledScriptLoader.loadScriptFromFile(runtime, is, searchName);
if (script == null) {
// we're depending on the side effect of the load, which loads the class but does not turn it into a script
// I don't like it, but until we restructure the code a bit more, we'll need to quietly let it by here.
return;
}
script.setFilename(scriptName);
runtime.loadScript(script, wrap);
}