Method: LinuxStat::USB.hwdata_file=
- Defined in:
- lib/linux_stat/usb.rb
.hwdata_file=(file) ⇒ Object
hwdata_file = file
Lets you set the hwdata_file about usb.ids.
The hwdata file about usb.ids contains vendor name and product name information about devices. This is then mapped by the other methods that utilizes hwdata/usb.ids.
Do note that this method is intended to run only once, at the beginning. If you use any other method that utilizes hwdata/usb.ids, before calling this method, this method will not work.
161 162 163 |
# File 'lib/linux_stat/usb.rb', line 161 def hwdata_file=(file) @@hwdata_file ||= file.freeze end |