clazz = jcl.defineClass(className, buf);
}
// if it's a compiled JRuby script, instantiate and run it
if (Script.class.isAssignableFrom(clazz)) {
Script script = (Script)clazz.newInstance();
script.setFilename(resource.getName());
script.load(runtime.getCurrentContext(), runtime.getTopSelf(), IRubyObject.NULL_ARRAY, Block.NULL_BLOCK);
}
} catch (IOException e) {
throw runtime.newIOErrorFromException(e);
} catch (InstantiationException ie) {
if (runtime.getDebug().isTrue()) {