使用新的 Ruby 模式匹配来检查 hash 是否具有某些键 [英]Using new Ruby pattern matching to check if a hash has certain keys