Sha256: 05b8ac31a61525f87ecaba8178e062ab16e72dd919eba41e3273894e32a48c45
Contents?: true
Size: 421 Bytes
Versions: 3
Compression:
Stored size: 421 Bytes
Contents
# dependencies require "ffi" # 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ngt-0.2.2 | lib/ngt.rb |
ngt-0.2.1 | lib/ngt.rb |
ngt-0.2.0 | lib/ngt.rb |