On this page
End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class · Ruby 3.2
File::Stat
Objects of class File::Stat encapsulate common status information for File objects. The information is recorded at the moment the File::Stat object is created; changes made to the file after that point will not be reflected. File::Stat objects are returned by IO#stat, File::stat, File#lstat, and File::lstat. Many of these methods return platform-specific values, and not all values are meaningful on all systems. See also Kernel#test.
Class methods 1
Instance methods 43
#<=>
#atime
#birthtime
#blksize
#blockdev?
#blocks
#chardev?
#ctime
#dev
#dev_major
#dev_minor
#directory?
#executable?
#executable_real?
#file?
#ftype
#gid
#grpowned?
#ino
#inspect
#mode
#mtime
#nlink
#owned?
#pipe?
#rdev
#rdev_major
#rdev_minor
#readable?
#readable_real?
#setgid?
#setuid?
#size
#size?
#socket?
#sticky?
#symlink?
#uid
#world_readable?
#world_writable?
#writable?
#writable_real?
#zero?