method
new
Ruby latest stable (v2_5_5)
-
0 notes -
Class: Closure
- 1_8_6_287
- 1_8_7_72
- 1_8_7_330
- 1_9_1_378
- 1_9_2_180
- 1_9_3_125 (0)
- 1_9_3_392 (0)
- 2_1_10 (38)
- 2_2_9 (0)
- 2_4_6 (0)
- 2_5_5 (0)
- 2_6_3 (0)
- What's this?
new(p1, p2, p3 = v3)
public
Construct a new Closure object.
-
ret is the C type to be returned
-
args is an Array of arguments, passed to the callback function
-
abi is the abi of the closure
If there is an error in preparing the ffi_cif or ffi_prep_closure, then a RuntimeError will be raised.