種類
- インスタンスメソッド (48)
- 特異メソッド (48)
- 文書 (10)
キーワード
-
NEWS for Ruby 2
. 3 . 0 (10) - eof? (12)
- open (48)
-
read
_ nonblock (12) - readchar (12)
検索結果
先頭5件
-
StringIO
# eof -> bool (35102.0) -
自身の pos が文字列の終端にあれば true を返します。そうでないなら false を返します。
自身の pos が文字列の終端にあれば true を返します。そうでないなら false を返します。 -
StringIO
# eof? -> bool (23102.0) -
自身の pos が文字列の終端にあれば true を返します。そうでないなら false を返します。
自身の pos が文字列の終端にあれば true を返します。そうでないなら false を返します。 -
StringIO
# read _ nonblock(maxlen , outbuf = nil , exception: true) -> String | nil (17028.0) -
StringIO#readに似ていますが、 exception オプションに false を指定すると EOFError を発生させず nil を返します。
...
StringIO#readに似ていますが、 exception オプションに false を指定すると EOFError を発生させず nil を返します。
@param len 読み込みたい長さを整数で指定します。StringIO#read と同じです。
@param outbuf 読み込んだ文字列を出力するバ......込んだデータのサイズになります。IO#read と同じです。
@param exception false を指定した場合、既に EOF に達していれば
EOFError の代わりに nil を返します。
@raise EOFError 文字列の終端に達した場合に発生します。... -
StringIO
# readchar -> String (17018.0) -
自身から 1 文字読み込んで、その文字に対応する String を返します。
...んで、その文字に対応する String を返します。
文字列の終端に到達した時には例外 EOFError を発生させます。
//emlist[例][ruby]{
require "stringio"
a = StringIO.new("hoge")
a.readchar #=> "h"
//}
@raise EOFError EOFに達した時発生する... -
NEWS for Ruby 2
. 3 . 0 (24.0) -
NEWS for Ruby 2.3.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...のIOオブジェクトに IO#close を呼んでも例外が発生しなくなりました。
10718
* IO#each_codepoint は、変換時、EOFの前に不完全な文字があると例外が発生するようになりました。
11444
* Module
* Module#define_method と Object......れるようになりました。
11242
* StringIO
* リードオンリーモードでは、StringIO#set_encoding はそのバッファ文字列にエンコーディングをセットしないようになりました。
StringIO#set_encoding を使わずに文字列のエンコー... -
CSV
. open(filename , mode = "rb" , options = Hash . new) -> CSV (18.0) -
このメソッドは IO オブジェクトをオープンして CSV でラップします。 これは CSV ファイルを書くための主要なインターフェイスとして使うことを意図しています。
...* IO#closed?
* IO#eof
* IO#eof?
* IO#external_encoding
* IO#fcntl
* IO#fileno
* File#flock
* IO#flush
* IO#fsync
* IO#internal_encoding
* IO#ioctl
* IO#isatty
* File#path
* IO#pid
* IO#pos
* IO#pos=
* IO#reopen
* IO#seek
* IO#stat
* StringIO#string
* IO#sync... -
CSV
. open(filename , mode = "rb" , options = Hash . new) {|csv| . . . } -> nil (18.0) -
このメソッドは IO オブジェクトをオープンして CSV でラップします。 これは CSV ファイルを書くための主要なインターフェイスとして使うことを意図しています。
...* IO#closed?
* IO#eof
* IO#eof?
* IO#external_encoding
* IO#fcntl
* IO#fileno
* File#flock
* IO#flush
* IO#fsync
* IO#internal_encoding
* IO#ioctl
* IO#isatty
* File#path
* IO#pid
* IO#pos
* IO#pos=
* IO#reopen
* IO#seek
* IO#stat
* StringIO#string
* IO#sync... -
CSV
. open(filename , options = Hash . new) -> CSV (18.0) -
このメソッドは IO オブジェクトをオープンして CSV でラップします。 これは CSV ファイルを書くための主要なインターフェイスとして使うことを意図しています。
...* IO#closed?
* IO#eof
* IO#eof?
* IO#external_encoding
* IO#fcntl
* IO#fileno
* File#flock
* IO#flush
* IO#fsync
* IO#internal_encoding
* IO#ioctl
* IO#isatty
* File#path
* IO#pid
* IO#pos
* IO#pos=
* IO#reopen
* IO#seek
* IO#stat
* StringIO#string
* IO#sync... -
CSV
. open(filename , options = Hash . new) {|csv| . . . } -> nil (18.0) -
このメソッドは IO オブジェクトをオープンして CSV でラップします。 これは CSV ファイルを書くための主要なインターフェイスとして使うことを意図しています。
...* IO#closed?
* IO#eof
* IO#eof?
* IO#external_encoding
* IO#fcntl
* IO#fileno
* File#flock
* IO#flush
* IO#fsync
* IO#internal_encoding
* IO#ioctl
* IO#isatty
* File#path
* IO#pid
* IO#pos
* IO#pos=
* IO#reopen
* IO#seek
* IO#stat
* StringIO#string
* IO#sync...