79503021

Date: 2025-03-12 08:43:35
Score: 2
Natty:
Report link

I understood how to do it. Rather than:

IRubyObject io = adapter.eval(runtime, <scriptContent>);

I have to do:

JavaEmbedUtils.EvalUnit evalUnit = adapter.parse(runtime, <scriptContent>, <file name>, 1);
IRubyObject io = evalUnit.run();
Reasons:
  • Blacklisted phrase (1): I have to do
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Hervé Girod