Methods

FFI::AutoPointer::CallableReleaser

CallableReleaser is a {Releaser} used when an {AutoPointer} is defined with a Proc or a Method.

Public Instance Methods

release(ptr) click to toggle source

@param [Pointer] ptr @return [nil] Release ptr by using Proc or Method defined at ptr {AutoPointer#initialize initialization}.

# File lib/ffi/autopointer.rb, line 157
def release(ptr)
  @proc.call(ptr)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.