Sha256: 44a0596c3a8828ab24869b28463dc2fd2a61f3a49ab0ab0d5637787db2779e53

Contents?: true

Size: 443 Bytes

Versions: 1

Compression:

Stored size: 443 Bytes

Contents

# dependencies
require "ffi"

# modules
require "libmf/model"
require "libmf/version"

module Libmf
  class Error < StandardError; end

  class << self
    attr_accessor :ffi_lib
  end
  self.ffi_lib = ["mf"]

  lib_path =
    if ::FFI::Platform.windows?
      "../vendor/windows/mf.dll"
    else
      "libmf.bundle"
    end
  self.ffi_lib << File.expand_path(lib_path, __dir__)

  # friendlier error message
  autoload :FFI, "libmf/ffi"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
libmf-0.1.0 lib/libmf.rb