dev Returns an integer representing the device. : dev « File Directory « Ruby






dev Returns an integer representing the device.


File.stat("testfile").dev
"%x" % File.stat("testfile").dev  

 

Related examples in the same category

1.dev_major Returns the major part of File::Stat#dev or nil if the operating system doesn't support this feature.
2.dev_minor Returns the minor part of File::Stat#dev or nil if the operating system doesn't support this feature.