Sha256: c6a78394ac645f0f94c3a6d273f378f1bf7313bd900c6c4bacd29bca66d6b727
Contents?: true
Size: 555 Bytes
Versions: 2
Compression:
Stored size: 555 Bytes
Contents
class FFIFileMagic module Native module LoadLibrary def self.included(base) base.class_eval do begin ffi_lib 'magic' rescue LoadError puts <<END_LOAD_ERROR +--------------------------------------------+ | I was unable to load the magic library. | | | | Try running the ffi_file_magic_setup tool | +--------------------------------------------+ END_LOAD_ERROR raise end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
glongman-ffiruby-filemagic-0.4.0 | lib/ffi_file_magic/load_library.rb |
glongman-ffiruby-filemagic-0.4.2 | lib/ffi_file_magic/load_library.rb |