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

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

pub struct Array;