Exception: Blinky::NoSupportedDevicesFound

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/blinky/no_supported_devices_found.rb

Instance Method Summary collapse

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_sObject

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