Exception: Blinky::NoSupportedDevicesFound
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Blinky::NoSupportedDevicesFound
- Defined in:
- lib/blinky/no_supported_devices_found.rb
Instance Method Summary collapse
-
#initialize(found_devices) ⇒ NoSupportedDevicesFound
constructor
A new instance of NoSupportedDevicesFound.
-
#to_s ⇒ Object
TODO - this doesn’t work with ribusb - there is no nice inspect method.
Constructor Details
#initialize(found_devices) ⇒ NoSupportedDevicesFound
Returns a new instance of NoSupportedDevicesFound.
5 6 7 |
# File 'lib/blinky/no_supported_devices_found.rb', line 5 def initialize found_devices @found_devices = found_devices end |
Instance Method Details
#to_s ⇒ Object
TODO - this doesn’t work with ribusb - there is no nice inspect method
10 11 12 13 14 |
# File 'lib/blinky/no_supported_devices_found.rb', line 10 def to_s "Blinky was unable to find a supported device \n" + "The devices I did find were:\n" + "#{@found_devices.pretty_inspect}\n" end |