るりまサーチ (Ruby 3.3)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.079秒)

別のキーワード

  1. openssl public_key
  2. argf.class lines
  3. argf.class each_line
  4. _builtin each_key
  5. openssl public_key=

ライブラリ

検索結果

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: ......