let sym_start_with = CString::new("start_with?").unwrap(); let sym_end_with = CString::new("end_with?").unwrap(); unsafe { rb_define_method(rb_cSymbol, sym_start_with.as_ptr(), rb_sym_start_with as c_func, -1); rb_define_method(rb_cSymbol, sym_end_with.as_ptr(), rb_sym_end_with as c_func, -1); } } 44