Skip to content

Instantly share code, notes, and snippets.

@vietj
Created May 5, 2015 14:52
Show Gist options
  • Save vietj/98dbe23f6d6bf4e46924 to your computer and use it in GitHub Desktop.
Save vietj/98dbe23f6d6bf4e46924 to your computer and use it in GitHub Desktop.
ScriptingContainer container = new ScriptingContainer();
container.runScriptlet("" +
"$test_global=1\n" +
"Java::IoVertxTestLangJruby::IsolationTest.registerCallback do\n" +
"puts \"HELLO #{$test_global}\"\n" +
"end\n");
callback.run();
container.runScriptlet("$test_global=2\n");
callback.run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment