pos -> Integer[permalink][rdoc]tell -> Integer-
ディレクトリストリームの現在の位置を整数で返します。
- [EXCEPTION] IOError:
- 既に自身が close している場合に発生します。
例:
Dir.open("/tmp") {|d| d.each {|f| p d.pos } }
このマニュアルは既にメンテナンスが終了したバージョンの Ruby を対象としています。 最新版のマニュアルへ
pos -> Integer[permalink][rdoc]tell -> Integerディレクトリストリームの現在の位置を整数で返します。
例:
Dir.open("/tmp") {|d|
d.each {|f|
p d.pos
}
}