Ruby/File Directory/chardev
Материал из Wiki.crossplatform.ru
Версия от 17:57, 13 сентября 2010; ViGOur (Обсуждение | вклад)
chardev? Returns true if the file is a character device
File.stat("/dev/tty").chardev? File.stat("testfile").chardev?