JRuby is a programming language created in 2001.
#662on PLDB | 22Years Old | 310Users |
2Books | 0Papers |
JRuby is an implementation of the Ruby programming language atop the Java Virtual Machine, written largely in Java. It is free software released under a three-way EPL/GPL/LGPL license. JRuby is tightly integrated with Java to allow the embedding of the interpreter into any Java application with full two-way access between the Java and the Ruby code (similar to Jython for the Python language). Read more on Wikipedia...
//Example using JSR 233 Scripting for Java 6
ScriptEngineManager mgr = new ScriptEngineManager();
ScriptEngine rbEngine = mgr.getEngineByExtension("rb");
try {
rbEngine.eval("puts 'Hello World!'");
} catch (ScriptException ex) {
ex.printStackTrace();
}
title | authors | year | publisher |
---|---|---|---|
JRuby Rails Web Application Development (SpringerBriefs in Computer Science) | Vohra, Deepak | 2014 | Springer |
Jruby Cookbook | Edelson, Justin. | 2008 | O'reilly Media Inc. |