ftype()
public
Identifies the type of stat. The return string is one of:
“file”, “directory”, “characterSpecial”, “blockSpecial”,
“fifo”, “link”, “socket”, or “unknown”.
File.stat("/dev/tty").ftype
Show source
static VALUE
rb_stat_ftype(VALUE obj)
{
return rb_file_ftype(get_stat(obj));
}