rdev()
public
Returns an integer representing the device type on which stat
resides. Returns nil if the operating system doesn’t support this
feature.
File.stat("/dev/fd1").rdev
File.stat("/dev/tty").rdev
Show source
static VALUE
rb_stat_rdev(VALUE self)
{
return ULONG2NUM(get_stat(self)->st_rdev);
return Qnil;
}