Class Weave::Library
In: lib/weave.rb
Parent: Object
RuntimeError WeaveException Symbol Library VERSION FFI Weave dot/f_3.png

Represents a native OS library that can be loaded via `dlopen`

Methods

close   new   opened?   symbol  

Attributes

file_name  [RW] 
hdl  [RW] 

Public Class methods

create new library, load with dlopen, try my very best to find it if it‘s not where the caller thinks it is. Parameter name is the filename of the library to load

Public Instance methods

close the handle to the dynamic library. If you do this and are still using functions from this library, calls to it will break everything (obviously?) More or less a wrapper around `dlclose`

Test whether the library is opened.

retrieve a symbol (address of a code or data location) from the library. The only symbols worth retrieve here are those conforming to ruby‘s native api signature…

[Validate]