るりまサーチ

最速Rubyリファレンスマニュアル検索!
97件ヒット [1-97件を表示] (0.086秒)

別のキーワード

  1. stringio read
  2. stringio sysread
  3. stringio readpartial
  4. stringio set_encoding
  5. stringio each

ライブラリ

クラス

キーワード

検索結果

StringIO#eof -> bool (39102.0)

自身の pos が文字列の終端にあれば true を返します。そうでないなら false を返します。

自身の pos が文字列の終端にあれば true を返します。そうでないなら false を返します。

StringIO#eof? -> bool (27102.0)

自身の pos が文字列の終端にあれば true を返します。そうでないなら false を返します。

自身の pos が文字列の終端にあれば true を返します。そうでないなら false を返します。

StringIO#read_nonblock(maxlen, outbuf = nil, exception: true) -> String | nil (21028.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 に達していれば
EOF
Error の代わりに nil を返します。

@raise EOFError 文字列の終端に達した場合に発生します。...

StringIO#readchar -> String (21018.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...