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