1件ヒット
[1-1件を表示]
(0.079秒)
トップページ > :Hash#key > :new > :keep_if > :each_key > :reject! > :dig > :ruby 1.8.4 feature > :3.3 > :NEWS for Ruby 2.7.0 > クラス:CSV::Row
別のキーワード
ライブラリ
- csv (1)
検索結果
-
CSV
:: Row # deconstruct _ keys(keys) -> Hash (18973.0) -
パターンマッチに使用するヘッダの名前と値の Hash を返します。
...名前の配列を指定します。nil の場合は全てをパターンマッチに使用します。
//emlist[例][ruby]{
require "csv"
row = CSV::Row.new([:header1, :header2, :header3], [1, 2, 3])
case row
in { header1: 2.., header2: 2.., header3: 2.. }
puts "all 2 or more"
in { header1: ......