tty?

ios.tty? â true or false
Instance Public methods

Returns true if ios is associated with a terminal device (tty), false otherwise.

File.new("testfile").isatty   #=> false
File.new("/dev/tty").isatty   #=> true
doc_ruby_on_rails
2015-04-13 14:58:37
Comments
Leave a Comment

Please login to continue.