るりまサーチ

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

別のキーワード

  1. argf.class lines
  2. argf.class each
  3. _builtin enum_for
  4. argf.class each_line
  5. argf.class to_a

クラス

検索結果

CSV.new(data, options = Hash.new) -> CSV (48.0)

このメソッドは CSV ファイルを読み込んだり、書き出したりするために String か IO のインスタンスをラップします。

...このメソッドは CSV ファイルを読み込んだり、書き出したりするために
String
か IO のインスタンスをラップします。

ラップされた文字列の先頭から読み込むことになります。
文字列に追記したい場合は CSV.generate を使用し...
...した StringIO を渡してください。

@param data String か IO のインスタンスを指定します。
String
のインスタンスを指定した場合、CSV#string を使用して
後からデータを取り出すことが出来ます。

@param options CSV...
...ll be used as the line-ending translation can cause
problems with resetting the document position to where it was before the
read ahead. This String will be transcoded into the data's Encoding before parsing.
: :quote_char
フィールドをクオートする文字を指定します。長...