[][src]Function mruby::interpreter

pub fn interpreter() -> Result<Mrb, MrbError>

Create and initialize an Mrb interpreter.

This function creates a new State, embeds it in the sys::mrb_state, initializes an in memory virtual filesystem, and loads the extn extensions to Ruby Core and Stdlib.