method

new

Importance_1
v2_2_9 - Show latest stable - 0 notes - Class: Handle
new(p1 = v1, p2 = v2) public

Create a new handler that opens library with flags.

If no library is specified or nil is given, DEFAULT is used, which is the equivalent to RTLD_DEFAULT. See man 3 dlopen for more.

lib = Fiddle::Handle.new

The default is dependent on OS, and provide a handle for all libraries already loaded. For example, in most cases you can use this to access libc functions, or ruby functions like rb_str_new.

Show source
Register or log in to add new notes.