Sha256: d071e01982cc4d35e5e5ac8aebe3408daf0d2618dff202756b398426b17aa934

Contents?: true

Size: 448 Bytes

Versions: 5

Compression:

Stored size: 448 Bytes

Contents

# dependencies
require "ffi"

# stdlib
require "tmpdir"

# modules
require "ngt/utils"
require "ngt/index"
require "ngt/optimizer"
require "ngt/version"

module Ngt
  class Error < StandardError; end

  class << self
    attr_accessor :ffi_lib
  end
  lib_name = FFI.map_library_name("ngt")
  vendor_lib = File.expand_path("../vendor/#{lib_name}", __dir__)
  self.ffi_lib = [vendor_lib]

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ngt-0.3.2 lib/ngt.rb
ngt-0.3.1 lib/ngt.rb
ngt-0.3.0 lib/ngt.rb
ngt-0.2.4 lib/ngt.rb
ngt-0.2.3 lib/ngt.rb