File Directory Ruby

File.stat("testfile").blockdev?  
File.stat("/dev/disk0").blockdev?