Skip to content

Instantly share code, notes, and snippets.

Created Oct 22, 2009
What would you like to do?
Example 1
package x;
import org.jruby.embed.ScriptingContainer;
public class Bar {
public static void main(String[] args) {
System.out.println(new ScriptingContainer().
runScriptlet("class Foo < Java::x.Bar; end; Foo")); // => class x.Bar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment