Used internally by Fiddle::Importer
# File ext/fiddle/lib/fiddle/import.rb, line 13 def initialize(handlers) @handlers = handlers end
Create a new handler with the open handlers
Used internally by Fiddle::Importer.dlload
# File ext/fiddle/lib/fiddle/import.rb, line 40 def [](symbol) sym(symbol) end
# File ext/fiddle/lib/fiddle/import.rb, line 18 def handlers() @handlers end
Array
of the currently loaded libraries.
# File ext/fiddle/lib/fiddle/import.rb, line 26 def sym(symbol) @handlers.each{|handle| if( handle ) begin addr = handle.sym(symbol) return addr rescue DLError end end } return nil end
Returns the address as an Integer
from any handlers with the function named symbol
.
Raises a DLError
if the handle is closed.
Ruby Core © 1993–2020 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses.