# frozen_string_literal: true require 'ffi' require_relative 'alamojoe/version' puts Dir.pwd module Alamojoe extend FFI::Library # set environment variables ENV['EXSEC_RUNTIME_LANGUAGE'] = 'NODE_JS' ENV['EXSEC_RUNTIME_LANGUAGE_VERSION'] = RUBY_VERSION ffi_lib (__dir__ + '/libcore.so') attach_function :configure, [:string], :int class Error < StandardError end end