Class: Hakuban::FFI::FFIResultWithNothing

Inherits:
FFIResult
  • Object
show all
Defined in:
lib/hakuban/ffi.rb

Instance Method Summary collapse

Instance Method Details

#unwrapObject



45
46
47
48
49
# File 'lib/hakuban/ffi.rb', line 45

def unwrap
	return nil  if self[:status].to_sym == :NotAvailable
	raise self[:status].to_exception  if self[:status].to_sym != :Ok
	nil
end