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.
238 239 240 241 242 |
# File 'lib/libusb/context.rb', line 238 def (={}) .each do |k, v| set_option(k, *Array(v)) end end |