APIdock / Ruby
/
method

dev

ruby latest stable - Class: File ::Stat
dev()
public

Returns an integer representing the device on which stat resides.

File .stat("testfile").dev  #=> 774
static VALUE
rb_stat_dev(VALUE self)
{
 return DEVT2NUM(get_stat(self)->st_dev);
}

AltStyle によって変換されたページ (->オリジナル) /