This is a case from Ruboto, but research shows it surfaces regularly. How can I send a block of Ruby code to a Java receiver without using a direct reference?
We can send the code as a string, and that is ok, but the code is then not parsed and analysed for syntax and semantic errors in the editor or the runtime.
We do not need the local binding in our case. We only use it to define methods on the receiving end.
The initial naive effort was to serialize RubyProc. Is that viable?