2件ヒット
[1-2件を表示]
(0.146秒)
ライブラリ
- csv (2)
クラス
-
CSV
:: Row (1) -
CSV
:: Table (1)
検索結果
-
CSV
:: Table # push(*rows) -> self (64051.0) -
複数の行を追加するためのショートカットです。
複数の行を追加するためのショートカットです。
以下と同じです。
//emlist[][ruby]{
rows.each {|row| self << row }
//}
@param rows CSV::Row のインスタンスか配列を指定します。
//emlist[例][ruby]{
require 'csv'
csv = CSV.new("a,b,c\n1,2,3", headers: true)
table = csv.read
rows = [
CSV::Row.new(table.headers, [4, 5, 6]),
[7, 8, 9]
]
table.push(... -
CSV
:: Row # push(*args) -> self (63625.0) -
複数のフィールドを追加するためのショートカットです。
複数のフィールドを追加するためのショートカットです。
以下とおなじです:
args.each { |arg| csv_row << arg }
@return メソッドチェーンのために自身を返します。