stat.size â fixnum Instance Public methods Returns the size of stat in bytes. File.stat("testfile").size #=> 66
stat.setuid? â true or false Instance Public methods Returns true if stat has the set-user-id permission bit set, false if it doesn't or if the operating system doesn't support this feature. File.stat("/bin/su").setuid? #=> true
stat.setgid? â true or false Instance Public methods Returns true if stat has the set-group-id permission bit set, false if it doesn't or if the operating system doesn't support this feature. File.stat("/usr/sbin/lpc").setgid? #=> true
stat.readable_real? â true or false Instance Public methods Returns true if stat is readable by the real user id of this process. File.stat("testfile").readable_real? #=> true
stat.readable? â true or false Instance Public methods Returns true if stat is readable by the effective user id of this process. File.stat("testfile").readable? #=> true
stat.rdev_minor â fixnum Instance Public methods Returns the minor part of File_Stat#rdev or nil. File.stat("/dev/fd1").rdev_minor #=> 1 File.stat("/dev/tty").rdev_minor #=> 0
stat.rdev_major â fixnum Instance Public methods Returns the major part of File_Stat#rdev or nil. File.stat("/dev/fd1").rdev_major #=> 2 File.stat("/dev/tty").rdev_major #=> 5
stat.rdev â fixnum or nil Instance Public methods 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 #=> 513 File.stat("/dev/tty").rdev #=> 1280
pretty_print(q) Instance Public methods
stat.pipe? â true or false Instance Public methods Returns true if the operating system supports pipes and stat is a pipe; false otherwise.
Page 2095 of 2275