chardev? Returns true if the file is a character device
File.stat("/dev/tty").chardev? File.stat("testfile").chardev?