3件ヒット
[1-3件を表示]
(0.023秒)
別のキーワード
クラス
- StringIO (3)
キーワード
- closed? (1)
-
closed
_ read? (1) -
read
_ nonblock (1)
検索結果
先頭3件
-
StringIO
# read _ nonblock(maxlen , outbuf = nil , exception: true) -> String | nil (18697.0) -
StringIO#readに似ていますが、 exception オプションに false を指定すると EOFError を発生させず nil を返します。
...
StringIO#readに似ていますが、 exception オプションに false を指定すると EOFError を発生させず nil を返します。
@param len 読み込みたい長さを整数で指定します。StringIO#read と同じです。
@param outbuf 読み込んだ文字列を出力するバ... -
StringIO
# closed _ read? -> bool (18358.0) -
自身に対する読み取りが禁止されているなら true を返します。そうでない場合は、false を返します。
自身に対する読み取りが禁止されているなら true を返します。そうでない場合は、false を返します。 -
StringIO
# closed? -> bool (91.0) -
自身が既に close されていた場合に true を返します。そうでない場合は、false を返します。
...身が既に close されていた場合に true を返します。そうでない場合は、false を返します。
//emlist[例][ruby]{
require "stringio"
sio = StringIO.open("hoge")
p sio.closed? # => false
sio.close_read
p sio.closed? # => false
sio.close_write
p sio.closed? # => true
//}...