Class: Hakuban::FFI::FFIResultWithPointer
- Defined in:
- lib/hakuban/ffi.rb
Instance Method Summary collapse
Instance Method Details
#unwrap ⇒ Object
56 57 58 59 60 |
# File 'lib/hakuban/ffi.rb', line 56 def unwrap return nil if self[:status].to_sym == :NotAvailable raise self[:status].to_exception if self[:status].to_sym != :Ok self[:pointer] end |