Classes: Pipe, TTY
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