Class: LIBUSB::Context::CompletionFlag

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/libusb/context.rb

Instance Method Summary collapse

Instance Method Details

#completed=(flag) ⇒ Object



68
69
70
# File 'lib/libusb/context.rb', line 68

def completed=(flag)
  self[:completed] = flag ? 1 : 0
end

#completed?Boolean

Returns:

  • (Boolean)


64
65
66
# File 'lib/libusb/context.rb', line 64

def completed?
  self[:completed] != 0
end