Module: Mmapper

Extended by:
FFI::Library
Defined in:
lib/mmapper.rb

Defined Under Namespace

Classes: Instance

Constant Summary collapse

LIB_DIR =
File.expand_path("../../ext", __FILE__)
LIB_NAME =
case RUBY_PLATFORM
when /darwin/ then "libmmapper.dylib"
when /mingw|mswin/ then "mmapper.dll"
else "libmmapper.so"
end
LIB_PATH =
File.join(LIB_DIR, LIB_NAME)

Class Method Summary collapse

Class Method Details

.load_file(filename) ⇒ Object



42
43
44
# File 'lib/mmapper.rb', line 42

def self.load_file(filename)
  Instance.new(filename)
end