rdev_major: the major part of File::Stat#rdev or nil if the operating system doesn't support this feature. : rdev « File Directory « Ruby






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


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

 

Related examples in the same category

1.rdev Returns an integer representing the device type
2.rdev_minor Returns the minor part of File::Stat#rdev or nil if the operating system doesn't support this feature.