Created
October 22, 2009 19:32
-
-
Save nelsnelson/216213 to your computer and use it in GitHub Desktop.
Example 1
This file contains hidden or 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
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