Module: Rzipline
- Extended by:
- FFI::Library
- Defined in:
- lib/rzipline.rb
Class Method Summary collapse
- .create(pathname) ⇒ Object
- .import_symbols ⇒ Object
- .load_lib(libpath = __dir__ + '/libzipline.so') ⇒ Object
Class Method Details
.create(pathname) ⇒ Object
14 15 16 |
# File 'lib/rzipline.rb', line 14 def self.create(pathname) zipline_create(pathname) end |
.import_symbols ⇒ Object
10 11 12 |
# File 'lib/rzipline.rb', line 10 def self.import_symbols() attach_function :zipline_create, [:string], :void end |
.load_lib(libpath = __dir__ + '/libzipline.so') ⇒ Object
5 6 7 8 |
# File 'lib/rzipline.rb', line 5 def self.load_lib(libpath = __dir__ + '/libzipline.so') ffi_lib libpath import_symbols() end |