method

dev

ruby latest stable - Class: File::Stat
dev()
public

Returns an integer representing the device on which stat resides.

File.stat("testfile").dev   #=> 774