method

new

ruby latest stable - Class: Fiddle::Function
new(p1, p2, p3, p4 = v4, p5 = {})
public

Constructs a Function object.

  • ptr is a referenced function, of a Fiddle::Handle

  • args is an Array of arguments, passed to the ptr function

  • ret_type is the return type of the function

  • abi is the ABI of the function