Module: Sysdo::SourceLibrary::Usb
- Defined in:
- lib/sysdo/source_library/usb.rb
Defined Under Namespace
Classes: UsbDevice
Class Method Summary collapse
Class Method Details
.connected ⇒ Object
4 5 6 |
# File 'lib/sysdo/source_library/usb.rb', line 4 def self.connected EventSource::PolledCollectionChange.new(:add) { attached_devices } end |
.disconnected ⇒ Object
8 9 10 |
# File 'lib/sysdo/source_library/usb.rb', line 8 def self.disconnected EventSource::PolledCollectionChange.new(:remove) { attached_devices } end |