size

stat.size â fixnum Instance Public methods Returns the size of stat in bytes. File.stat("testfile").size #=> 66

setuid?

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

setgid?

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

readable_real?

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

readable?

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

rdev_minor

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

rdev_major

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

rdev

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

pretty_print(q) Instance Public methods

pipe?

stat.pipe? â true or false Instance Public methods Returns true if the operating system supports pipes and stat is a pipe; false otherwise.