Class: FFI::AutoPointer::CallableReleaser
- Defined in:
- lib/ffi/autopointer.rb
Overview
CallableReleaser is a Releaser used when an FFI::AutoPointer is defined with a Proc or a Method.
Instance Attribute Summary
Attributes inherited from Releaser
Instance Method Summary collapse
-
#release(ptr) ⇒ nil
Release
ptr
by using Proc or Method defined atptr
initialization.
Methods inherited from Releaser
Constructor Details
This class inherits a constructor from FFI::AutoPointer::Releaser
Instance Method Details
#release(ptr) ⇒ nil
Release ptr
by using Proc or Method defined at ptr
initialization.
174 175 176 |
# File 'lib/ffi/autopointer.rb', line 174 def release(ptr) @proc.call(ptr) end |