33件ヒット
[1-33件を表示]
(0.079秒)
検索結果
-
Dir
# pos -> Integer (26113.0) -
ディレクトリストリームの現在の位置を整数で返します。
...ディレクトリストリームの現在の位置を整数で返します。
@raise IOError 既に自身が close している場合に発生します。
//emlist[例][ruby]{
Dir.open("/tmp") {|d|
d.each {|f|
p d.pos
}
}
//}... -
Dir
# tell -> Integer (11013.0) -
ディレクトリストリームの現在の位置を整数で返します。
...ディレクトリストリームの現在の位置を整数で返します。
@raise IOError 既に自身が close している場合に発生します。
//emlist[例][ruby]{
Dir.open("/tmp") {|d|
d.each {|f|
p d.pos
}
}
//}... -
Kernel
$ $ stdin -> object (8018.0) -
標準入力です。
...ドを
正しく実装していなければいけません。
gets, readline, readlines, getc, readchar, tell, seek,
pos=, rewind, fileno, to_io, eof, each_line, each_byte,
binmode, closed?
//emlist[例][ruby]{
$stdin = Object.new
def $stdin.gets
"foo"
end
p gets() # => "foo"
//}...