るりまサーチ

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

別のキーワード

  1. _builtin eoferror
  2. webrick/httpstatus eoferror
  3. readline eoferror
  4. eoferror
  5. webrick/httpstatus webrick::httpstatus::eoferror

クラス

モジュール

キーワード

検索結果

<< < 1 2 3 >>

Kernel.#gets(rs = $/) -> String | nil (8.0)

ARGFから一行読み込んで、それを返します。 行の区切りは引数 rs で指定した文字列になります。

...のファイルを連結した 1 つの仮想ファイルを表すオブジェクトです。\n"
p gets #=> nil
p readline # end of file reached (EOFError)
//}

//emlist[b.txt][ruby]{
hello
it
common
//}

//emlist[c.txt][ruby]{
ARGF

# スクリプトに指定した引数 (Object::ARGV を参照)...
<< < 1 2 3 >>