ruby.wasm
ruby.wasm copied to clipboard
Examples of using the exports for embedding
I'd like to be able to use Ruby as an embedded language, but I don't understand what all of the exports do. I'm assuming that init
starts the interpreter, and eval-string-protect
runs arbitrary code. I'd also like to be able to invoke an an arbitrary function from a library. Are there any examples or documentation on the exports?
Do you mean exporting functionalities from Ruby to JavaScript? Or vice vasa? Anyway, I'll try to enhance our documentation content next month
We want to embed Ruby in a C++ program, so initially we need to execute Ruby code and call Ruby methods from C++.