module

DL::Importer

ruby latest stable

Module deprecated or moved

This module is deprecated or moved on the latest stable version. The last existing version (v2_1_10) is shown here.

DL::Importer includes the means to dynamically load libraries and build modules around them including calling extern functions within the C library that has been loaded.

Example

require 'dl'
require 'dl/import'

module LibSum
  extend DL::Importer
  dlload './libsum.so'
  extern 'double sum(double*, int)'
  extern 'double split(double)'
end

Included modules

  • DL
  • DL::CParser

Files

  • ext/dl/lib/dl/import.rb