Ruby 1.9.2 リファレンスマニュアル > ライブラリ一覧 > csvライブラリ > CSV::Rowクラス > []=
self[header_or_index] = value
self[header, offset] = value
ヘッダの名前かインデックスでフィールドを探し、値をセットします。
Assigning past the end of the row with an index will set all pairs between to <tt>[nil, nil]</tt>. Assigning to an unused header appends the new pair.
[SEE_ALSO] CSV::Row#field
self[header, offset] = value
ヘッダの名前でフィールドを探し、値をセットします。
[SEE_ALSO] CSV::Row#field