rdev Returns an integer representing the device type : rdev « File Directory « Ruby






rdev Returns an integer representing the device type


File.stat("/dev/disk0s1").rdev
File.stat("/dev/tty").rdev

 

Related examples in the same category

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