Created
May 5, 2015 14:52
-
-
Save vietj/98dbe23f6d6bf4e46924 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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