Ruby needs more documentation. I had to go into the ruby โโsource code, and here is what I found:
VALUE rb_rescue(VALUE (* b_proc)(ANYARGS), VALUE data1, VALUE (* r_proc)(ANYARGS), VALUE data2) { return rb_rescue2(b_proc, data1, r_proc, data2, rb_eStandardError, (VALUE)0); }
So the answer to my question (I think):
rb_rescue2(x, Qnil, y, Qnil, rb_eException, (VALUE)0); VALUE x(void) { return Qnil; } VALUE y(void) { return Qnil; }
Adrian
source share