るりまサーチ (Ruby 2.3.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.050秒)
トップページ > バージョン:2.3.0[x] > クエリ:File.stat[x] > クエリ:gid[x] > クエリ:uid[x] > クエリ:NEWS%20for%20Ruby%202.3.0[x] > クラス:IO[x] > ライブラリ:ビルトイン[x]

別のキーワード

  1. _builtin %
  2. argf.class lines
  3. argf.class each_line
  4. argf.class each
  5. argf.class set_encoding

検索結果

IO#stat -> File::Stat (55123.0)

ファイルのステータスを含む File::Stat オブジェクトを生成して 返します。

...

@raise Errno::EXXX ステータスの読み込みに失敗した場合に発生します。

@raise IOError 既に close されていた場合に発生します。

//emlist[例][ruby]{
IO
.write("testfile", "This is line one\nThis is line two\n")
File.open("testfile") do |f|
s = f.stat
"%o...