22件ヒット
[1-22件を表示]
(0.249秒)
ライブラリ
- csv (22)
クラス
-
CSV
:: Table (22)
検索結果
-
CSV
:: Table # by _ col _ or _ row -> CSV :: Table (18125.0) -
ミックスモードになっている新しい CSV::Table オブジェクトを返します。
...csv"
row1 = CSV::Row.new(["header1", "header2"], ["row1_1", "row1_2"])
row2 = CSV::Row.new(["header1", "header2"], ["row2_1", "row2_2"])
table = CSV::Table.new([row1, row2]).by_col!
table # => #<CSV::Table mode:col row_count:3>
col_or_row_table = table.by_col_or_row
col_or_row_table #... -
CSV
:: Table # by _ col _ or _ row! -> self (6125.0) -
自身をミックスモードに変更します。
...require "csv"
row1 = CSV::Row.new(["header1", "header2"], ["row1_1", "row1_2"])
row2 = CSV::Row.new(["header1", "header2"], ["row2_1", "row2_2"])
table = CSV::Table.new([row1, row2]).by_col!
table # => #<CSV::Table mode:col row_count:3>
table.by_col_or_row!
table # => #<CSV:...