Used internally by Fiddle::Importer
Methods
Class Public methods
new(handlers)
Link
Create a new handler with the open handlers
Used internally by Fiddle::Importer#dlload
Source: show
# File ext/fiddle/lib/fiddle/import.rb, line 12 def initialize(handlers) @handlers = handlers end
Instance Public methods
[](symbol)
Link
See #sym
Source: show
# File ext/fiddle/lib/fiddle/import.rb, line 39 def [](symbol) sym(symbol) end
handlers()
Link
Array of the currently loaded libraries.
Source: show
# File ext/fiddle/lib/fiddle/import.rb, line 17 def handlers() @handlers end
sym(symbol)
Link
Returns the address as an Integer from any
handlers with the function named symbol.
Raises a DLError if the handle is closed.
Source: show
# File ext/fiddle/lib/fiddle/import.rb, line 25 def sym(symbol) @handlers.each{|handle| if( handle ) begin addr = handle.sym(symbol) return addr rescue DLError end end } return nil end