るりまサーチ (Ruby 2.5.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.025秒)
トップページ > バージョン:2.5.0[x] > クエリ:Dir[x] > クエリ:fileno[x] > ライブラリ:ビルトイン[x] > クラス:Dir[x]

別のキーワード

  1. dir open
  2. dir foreach
  3. dir chdir
  4. dir each_child
  5. rake original_dir

検索結果

Dir#fileno -> Integer (117367.0)

self に関連づけられたファイル記述子を表す整数を返します。

...を表す整数を返します。

//emlist[例][ruby]{
Dir
.open("..") { |d| d.fileno } # => 8
//}

本メソッドでは POSIX 2008 で定義されている dirfd() 関数を使用します。

@raise NotImplementedError Windows などの dirfd() 関数が存在しないプラッ...