るりまサーチ

最速Rubyリファレンスマニュアル検索!
32件ヒット [1-32件を表示] (0.050秒)
トップページ > クエリ:Integer[x] > クラス:Dir[x]

別のキーワード

  1. openssl integer
  2. asn1 integer
  3. _builtin integer
  4. integer chr
  5. integer new

ライブラリ

キーワード

検索結果

Dir#pos -> Integer (103.0)

ディレクトリストリームの現在の位置を整数で返します。

...ディレクトリストリームの現在の位置を整数で返します。

@raise IOError 既に自身が close している場合に発生します。

//emlist[例][ruby]{
Dir
.open("/tmp") {|d|
d.each {|f|
p d.pos
}
}
//}...

Dir#tell -> Integer (103.0)

ディレクトリストリームの現在の位置を整数で返します。

...ディレクトリストリームの現在の位置を整数で返します。

@raise IOError 既に自身が close している場合に発生します。

//emlist[例][ruby]{
Dir
.open("/tmp") {|d|
d.each {|f|
p d.pos
}
}
//}...

Dir#fileno -> Integer (102.0)

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

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

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

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

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