stat -> File::Stat[permalink][rdoc]ファイルのステータスを含む File::Stat オブジェクトを生成して返します。
例
IO.write("testfile", "This is line one\nThis is line two\n")
File.open("testfile") do |f|
  s = f.stat
  "%o" % s.mode   # => "100644"
  s.blksize       # => 4096
  s.atime         # => 2018-03-01 23:19:59 +0900
end
[SEE_ALSO] File#lstat, File.stat, File.lstat