1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
use crate::eval::MrbEval; use crate::Mrb; use crate::MrbError; pub mod array; pub mod env; pub mod error; pub mod hash; pub mod kernel; pub mod matchdata; pub mod module; pub mod regexp; pub mod string; pub mod thread; pub fn patch(interp: &Mrb) -> Result<(), MrbError> { interp.eval(include_str!("object.rb"))?; array::patch(interp)?; env::patch(interp)?; error::patch(interp)?; hash::patch(interp)?; kernel::patch(interp)?; matchdata::init(interp)?; module::patch(interp)?; regexp::init(interp)?; string::patch(interp)?; thread::init(interp)?; Ok(()) }