Module: Archive::C

Defined in:
lib/ffi-libarchive-binary.rb

Class Method Summary collapse

Class Method Details

.ffi_lib(*args) ⇒ Object



28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/ffi-libarchive-binary.rb', line 28

def self.ffi_lib(*args)
  prefixed = args.map do |names|
    paths = names.is_a?(Array) ? names : [names]
    if paths.any? { |f| f.include?("libarchive") }
      [LibarchiveBinary.lib_path] + paths
    else
      names
    end
  end

  super(*prefixed)
end