The best doc I found was this, but it's a bit outdated -- deprecated or missing methods. I'd like to, from Java code:
- Load a
.rb
file from the filesystem. - Make sure it is compiled to the fastest form possible, since this exists in a long-running server.
- Call a function or class in that file, passing in values constructed on the Java side.
- (If possible) Be able to repeat steps 1-3, if the
.rb
file changes, and pickup the new Ruby code.