Skip to content

Instantly share code, notes, and snippets.

@nelsnelson
Created October 22, 2009 19:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nelsnelson/216213 to your computer and use it in GitHub Desktop.
Save nelsnelson/216213 to your computer and use it in GitHub Desktop.
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