1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
use crate::eval::MrbEval;
use crate::Mrb;
use crate::MrbError;

pub fn patch(interp: &Mrb) -> Result<(), MrbError> {
    interp
        .borrow_mut()
        .def_class::<Module>("Module", None, None);
    interp.eval(include_str!("module.rb"))?;
    Ok(())
}

pub struct Module;