Module: NineteenNinetynine::Img2cat
- Included in:
- NineteenNinetynine
- Defined in:
- lib/nineteen_ninetynine/img2cat.rb
Instance Method Summary collapse
Instance Method Details
#determine_img2cat_command ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/nineteen_ninetynine/img2cat.rb', line 7 def determine_img2cat_command # TODO: use exit code, supressess STDOUT if system("which", "wezterm") @executable_img2cat_command = "wezterm imgcat" elsif system("which", "imgcat") @executable_img2cat_command = "imgcat" elsif system("which", "img2sixel") @executable_img2cat_command = "img2sixel" end end |
#executable_img2cat_command ⇒ Object
3 4 5 |
# File 'lib/nineteen_ninetynine/img2cat.rb', line 3 def executable_img2cat_command @executable_img2cat_command ||= nil end |