Let MiniFFI instances yield themselves in blocks

This commit is contained in:
Inori 2019-08-04 19:51:38 -04:00 committed by Inori
parent 4a37282c10
commit 8971f679d4

View file

@ -143,6 +143,7 @@ RB_METHOD(MiniFFI_initialize)
}
}
rb_iv_set(self, "_exports", INT2FIX(ex));
if (rb_block_given_p()) rb_yield(self);
return Qnil;
}