33件ヒット
[1-33件を表示]
(0.080秒)
ライブラリ
- stringio (33)
キーワード
-
close
_ read (11) - closed? (11)
-
closed
_ read? (11)
検索結果
-
StringIO
# close _ read -> nil (12204.0) -
自身に対する読み取りを禁止します。
自身に対する読み取りを禁止します。
@raise IOError 自身がすでに読み取り不可だった場合に発生します。 -
StringIO
# closed _ read? -> bool (12203.0) -
自身に対する読み取りが禁止されているなら true を返します。そうでない場合は、false を返します。
自身に対する読み取りが禁止されているなら true を返します。そうでない場合は、false を返します。 -
StringIO
# closed? -> bool (6136.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
/...