Module: Ext

Extended by:
FFI::Library
Included in:
DCase::Table
Defined in:
lib/dcase/table.rb

Class Method Summary collapse

Class Method Details

.binary_pathObject



5
6
7
8
9
10
11
12
13
# File 'lib/dcase/table.rb', line 5

def self.binary_path
  path = ''
  %w( so bundle dll ).each do |ext|
    path = File.expand_path('..', File.dirname(__FILE__)) + "/encrypt.#{ext}"
    break if File.exists? path
  end

  path
end