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