# stdlib require "fiddle/import" require "fileutils" require "tempfile" # modules require "thundersvm/model" require "thundersvm/classifier" require "thundersvm/regressor" require "thundersvm/version" module ThunderSVM class Error < StandardError; end class << self attr_accessor :ffi_lib end self.ffi_lib = ["libthundersvm.so", "libthundersvm.dylib", "thundersvm.dll"] # friendlier error message autoload :FFI, "thundersvm/ffi" def self.load_model(path) model = Model.new model.load_model(path) model end end