New in JRuby 1.4 is JRuby Embed, which lets you eval Ruby from Java classes. It works, appears to be well-written, and needs some sugar. Here’s a class that limits your options in a helpful way.
Improved object wrapper for JRuby Embed
Posted by Young Heaving Bosoms of Liberty on November 23, 2009