Class
Used internally by Fiddle::Importer
Class Methods
ext/fiddle/lib/fiddle/import.rb
View on GitHub
# File tmp/rubies/ruby-2.4.10/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
Instance Methods
ext/fiddle/lib/fiddle/import.rb
View on GitHub
# File tmp/rubies/ruby-2.4.10/ext/fiddle/lib/fiddle/import.rb, line 40
def [](symbol)
sym(symbol)
end
#
ext/fiddle/lib/fiddle/import.rb
View on GitHub
# File tmp/rubies/ruby-2.4.10/ext/fiddle/lib/fiddle/import.rb, line 18
def handlers()
@handlers
end
Array of the currently loaded libraries.
ext/fiddle/lib/fiddle/import.rb
View on GitHub
# File tmp/rubies/ruby-2.4.10/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