singleton method CSV::StringReader.new
new(string, fs = ',', rs = nil) -> CSV::StringReader
-
CSV形式の文字列を初期値として与えてインスタンスを生成します。
- [PARAM] string:
- 初期値の文字列
- [PARAM] fs:
- フィールドセパレータの指定。 nil (デフォルト) で ',' をセパレータとします。
- [PARAM] rs:
- 行区切り文字の指定。nil (デフォルト) で CrLf / Lf。 Cr を行区切りとしたい場合は ?\r を渡します。
class CSV::StringReader