scriptReader = new FileReader("JRubyScripts/test_multifunctions.rb");
// Evaluate (execute) the script. Once evaluated, any functions
// in the script can be called with the invokeFunction method.
rubyEngine.eval(scriptReader);
// Call function
obj = rubyInvocableEngine.invokeFunction("function_two",
"HelloWord");
// Call method (procedure)
rubyInvocableEngine.invokeMethod("", "function_one", new Object[0]);
scriptReader.close();
System.out.printf("Return of the function '%s'\n", obj);