Class: Hakuban::FFI::FFIResultWithNothing
- Defined in:
- lib/hakuban/ffi.rb
Instance Method Summary collapse
Instance Method Details
#unwrap ⇒ Object
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 |