Method: LIBUSB::Context#set_options

Defined in:
lib/libusb/context.rb

#set_options(options = {}) ⇒ Object

Convenience function to set context related options in the libusb library.

Use this function to configure any number of options within the library. It takes a Hash the same way as given to #initialize. See also option list.

Parameters:

  • options (Hash{Call::Options => Object}) (defaults to: {})

    Option hash

See Also:



238
239
240
241
242
# File 'lib/libusb/context.rb', line 238

def set_options(options={})
  options.each do |k, v|
    set_option(k, *Array(v))
  end
end