File Directory Ruby

putsĀ File.stat("testfile").dev_major