るりまサーチ (Ruby 2.3.0)

最速Rubyリファレンスマニュアル検索!
2件ヒット [1-2件を表示] (0.064秒)
トップページ > バージョン:2.3.0[x] > クラス:Dir[x] > クエリ:_builtin[x] > クエリ:each[x] > クエリ:tell[x]

別のキーワード

  1. _builtin new
  2. _builtin inspect
  3. _builtin []
  4. _builtin to_s
  5. _builtin each

ライブラリ

検索結果

Dir#tell -> Integer (69325.0)

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

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

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

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

Dir#pos -> Integer (24025.0)

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

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

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

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