Class: Twterm::PhotoViewerBackend::QuickLookBackend
- Inherits:
-
AbstractPhotoViewerBackend
- Object
- AbstractPhotoViewerBackend
- Twterm::PhotoViewerBackend::QuickLookBackend
- Defined in:
- lib/twterm/photo_viewer_backend/quick_look_backend.rb
Instance Method Summary collapse
Instance Method Details
#view(url) ⇒ Object
6 7 8 9 10 |
# File 'lib/twterm/photo_viewer_backend/quick_look_backend.rb', line 6 def view(url) with_downloaded_file(url) do |file| `qlmanage -p #{file.path} 2>/dev/null` end end |