Module: HTTY::CLI::InputDevice
- Defined in:
- lib/htty/cli/input_device.rb
Defined Under Namespace
Class Method Summary collapse
Class Method Details
.new(display) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/htty/cli/input_device.rb', line 5 def self.new(display) if STDIN.tty? TTY.new(display) else Pipe.new(display) end end |