method

chardev?

ruby latest stable - Class: File
chardev?(p1)
public

Returns true if the named file is a character device.

file_name can be an IO object.