ruby.wasm icon indicating copy to clipboard operation
ruby.wasm copied to clipboard

Examples of using the exports for embedding

Open kesmit13 opened this issue 2 years ago • 2 comments

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?

kesmit13 avatar Jan 19 '23 21:01 kesmit13

Do you mean exporting functionalities from Ruby to JavaScript? Or vice vasa? Anyway, I'll try to enhance our documentation content next month

kateinoigakukun avatar Jan 21 '23 03:01 kateinoigakukun

We want to embed Ruby in a C++ program, so initially we need to execute Ruby code and call Ruby methods from C++.

kesmit13 avatar Jan 21 '23 14:01 kesmit13