Ruby/File Directory/dev
Материал из Wiki.crossplatform.ru
(Различия между версиями)
Версия 17:10, 26 мая 2010
dev_major Returns the major part of File::Stat#dev or nil if the operating system doesn"t support this feature.
puts File.stat("testfile").dev_major
dev_minor Returns the minor part of File::Stat#dev or nil if the operating system doesn"t support this feature.
File.stat("testfile").dev_minor
dev Returns an integer representing the device.
File.stat("testfile").dev "%x" % File.stat("testfile").dev