method

ftype

v1_8_7_72 - Show latest stable - Class: File::Stat
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   #=> "characterSpecial"