blockdev? Returns true if the file is a block device
File.stat("testfile").blockdev? File.stat("/dev/disk0").blockdev?