Skip to content
On this page
class · Ruby 4.0

File::Stat

< Object include Comparable 43 instance methods 1 class methods

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

Ruby version changes 1

  1. 4.0