Module: TerminalImage
- Defined in:
- lib/terminal_image.rb,
lib/terminal_image/version.rb
Defined Under Namespace
Classes: UnsupportedTerminal
Constant Summary collapse
- VERSION =
"0.1.0"
Class Method Summary collapse
Class Method Details
.show(file) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/terminal_image.rb', line 8 def show(file) if ENV['TERM_PROGRAM'] == 'iTerm.app' show_on_iterm2(file) else raise UnsupportedTerminal, 'Unsupported terminal' end end |