Method: LIBUSB::Setting#<=>

Defined in:
lib/libusb/setting.rb

#<=>(o) ⇒ Object



125
126
127
128
129
130
# File 'lib/libusb/setting.rb', line 125

def <=>(o)
  t = interface<=>o.interface
  t = bInterfaceNumber<=>o.bInterfaceNumber if t==0
  t = bAlternateSetting<=>o.bAlternateSetting if t==0
  t
end