Class: PhotoUtils::Tools::Cameras
- Inherits:
-
PhotoUtils::Tool
- Object
- PhotoUtils::Tool
- PhotoUtils::Tools::Cameras
- Defined in:
- lib/photo_utils/tools/cameras.rb
Instance Method Summary collapse
Methods inherited from PhotoUtils::Tool
#description, #initialize, #name, #usage
Constructor Details
This class inherits a constructor from PhotoUtils::Tool
Instance Method Details
#run ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/photo_utils/tools/cameras.rb', line 9 def run if Camera.cameras Camera.cameras.each do |camera| camera.print puts end else warn "No cameras found." end end |