Maintenance of Ruby 2.0.0 ended on February 24, 2016. Read more

In Files

  • fiddle/lib/fiddle/import.rb



Used internally by Fiddle::Importer

Public Class Methods

new(handlers) click to toggle source

Create a new handler with the open handlers

Used internally by Fiddle::Importer#dlload

               # File fiddle/lib/fiddle/import.rb, line 12
def initialize(handlers)
  @handlers = handlers

Public Instance Methods

[](symbol) click to toggle source

See #sym

               # File fiddle/lib/fiddle/import.rb, line 39
def [](symbol)
handlers() click to toggle source

Array of the currently loaded libraries.

               # File fiddle/lib/fiddle/import.rb, line 17
def handlers()
sym(symbol) click to toggle source

Returns the address as an Integer from any handlers with the function named symbol.

Raises a DLError if the handle is closed.

               # File fiddle/lib/fiddle/import.rb, line 25
def sym(symbol)
    if( handle )
        addr = handle.sym(symbol)
        return addr
      rescue DLError
  return nil

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit