csv-method-signatures.patch
| refm/api/src/csv/CSV__BasicWriter (working copy) | ||
|---|---|---|
| 5 | 5 | |
| 6 | 6 |
== Class Methods |
| 7 | 7 | |
| 8 |
--- new(str_or_writable[, fs = ','[, rs = nil]]) -> CSV::BasicWriter
|
|
| 8 |
--- new(str_or_writable, fs = ',', rs = nil) -> CSV::BasicWriter
|
|
| 9 | 9 |
引数str_or_writableを出力先として[[c:CSV::BasicWriter]]オブジェクトを生成します。 |
| 10 | 10 | |
| 11 | 11 |
@param str_or_writable CSVデータの書き込み先。このパラメータとして渡すインスタンスには<<メソッドが定義されている必要があります。 |
| refm/api/src/csv/CSV__Cell (working copy) | ||
|---|---|---|
| 6 | 6 | |
| 7 | 7 |
== Class Methods |
| 8 | 8 | |
| 9 |
--- new([data = '', is_null = false]) -> CSV::Cell
|
|
| 9 |
--- new(data = '', is_null = false) -> CSV::Cell
|
|
| 10 | 10 |
引数dataを値として持つ[[c:CSV::Cell]]クラスのオブジェクトを生成します。 |
| 11 | 11 | |
| 12 | 12 |
@param data Cellデータの初期値 |
| refm/api/src/csv/CSV__IOReader (working copy) | ||
|---|---|---|
| 4 | 4 | |
| 5 | 5 |
== Class Methods |
| 6 | 6 | |
| 7 |
--- new(io[, fs = ','[, rs = nil]]) -> CSV::IOReader
|
|
| 7 |
--- new(io, fs = ',', rs = nil) -> CSV::IOReader
|
|
| 8 | 8 |
引数に従い、[[c:CSV::IOReader]]クラスのオブジェクトを生成します。 |
| 9 | 9 | |
| 10 | 10 |
@param io 読み込み先の指定。 |
| refm/api/src/csv/CSV__Reader (working copy) | ||
|---|---|---|
| 8 | 8 | |
| 9 | 9 |
== Class Methods |
| 10 | 10 | |
| 11 |
--- parse(str_or_readable[, fs = ','[, rs = nil]]) -> CSV::StringReader
|
|
| 12 |
--- parse(str_or_readable[, fs = ','[, rs = nil]]) {|row| ... } -> nil
|
|
| 11 |
--- parse(str_or_readable, fs = ',', rs = nil) -> CSV::StringReader
|
|
| 12 |
--- parse(str_or_readable, fs = ',', rs = nil) {|row| ... } -> nil
|
|
| 13 | 13 | |
| 14 | 14 |
CSVデータを解析して、[[c:CSV::StringReader]]を返します。 |
| 15 | 15 |
ブロックに渡された場合はパースした結果を1列づつArrayとして渡します。 |
| ... | ... | |
| 30 | 30 |
p row |
| 31 | 31 |
} |
| 32 | 32 | |
| 33 |
--- create(str_or_readable[, fs = ','[, rs = nil]]) -> CSV::StringReader
|
|
| 33 |
--- create(str_or_readable, fs = ',', rs = nil) -> CSV::StringReader
|
|
| 34 | 34 | |
| 35 | 35 |
CSVデータを解析して、解析結果を格納した[[c:CSV::StringReader]]を返します。 |
| 36 | 36 | |