るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.061秒)
トップページ > クエリ:-[x] > クエリ:ruby[x] > クエリ:row[x] > クエリ:to_hash[x]

別のキーワード

  1. matrix row
  2. csv header_row?
  3. csv row_sep
  4. matrix row_count
  5. matrix row_size

ライブラリ

クラス

検索結果

CSV::Row#to_hash -> Hash (21231.0)

自身をシンプルなハッシュに変換します。

...プルなハッシュに変換します。

フィールドの順序は無視されます。
重複したフィールドは削除されます。

//emlist[例][ruby]{
require "csv"

row
= CSV::Row.new(["header2", "header1", "header2"], [1, 2, 3])
row
.to_hash # => {"header2"=>3, "header1"=>2}
//}...