Embedding mruby in C
Simple example of mruby embedded in a C application
To get started with the simplest example you can do the following:
git clone --recursive https://github.com/carsonmcdonald/mruby-c-example.git
cd mruby-c-example
make
./simplest
Examples
- simplest - Simply load and run a script
- simple_class - Create a class and use it in a script
- simple_module - Create a module and use it in a script
- class_under_module - Create a class under a module and use it in a script
- simple_yield - Create a method that yields to a given block