chardev?()
public
Returns true if the file is a character device, false if it isn’t or if
the operating system doesn’t support this feature.
File.stat("/dev/tty").chardev?
Show source
static VALUE
rb_stat_c(VALUE obj)
{
if (S_ISCHR(get_stat(obj)->st_mode)) return Qtrue;
return Qfalse;
}