Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples of using the exports for embedding #145

Open
kesmit13 opened this issue Jan 19, 2023 · 2 comments
Open

Examples of using the exports for embedding #145

kesmit13 opened this issue Jan 19, 2023 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@kesmit13
Copy link

kesmit13 commented Jan 19, 2023

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?

@kateinoigakukun
Copy link
Member

kateinoigakukun commented Jan 21, 2023

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

@kesmit13
Copy link
Author

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

@kateinoigakukun kateinoigakukun added the documentation Improvements or additions to documentation label Feb 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Development

No branches or pull requests

2 participants