{"provider_url":"https://hatena.blog","title":"\u4eca\u9031\u306e\u6c17\u306b\u306a\u3063\u305f bugs.ruby","width":"100%","height":"190","image_url":null,"url":"https://secret-garden.hatenablog.com/entry/2020/07/09/203921","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecret-garden.hatenablog.com%2Fentry%2F2020%2F07%2F09%2F203921\" title=\"\u4eca\u9031\u306e\u6c17\u306b\u306a\u3063\u305f bugs.ruby - Secret Garden(Instrumental)\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","description":"\u5185\u5bb9\u306f\u9069\u5f53\u3067\u3059\u3002 \u4eca\u9031\u3068\u8a00\u3063\u3066\u3082\u4eca\u9031\u307f\u304b\u3051\u305f\u30c1\u30b1\u30c3\u30c8\u306a\u3060\u3051\u3067\u30c1\u30b1\u30c3\u30c8\u81ea\u4f53\u306f\u6614\u304b\u3089\u3042\u308b\u3084\u3064\u3082\u3042\u308a\u307e\u3059\u3002 \u5148\u9031\u306e\u307e\u3068\u3081 [Feature #17006] Let Kernel#Hash take a block to provide the default value Hash \u306b default_proc \u3092\u6e21\u305b\u308b\u3088\u3046\u306b\u3059\u308b\u63d0\u6848 # \u65e2\u5b58\u306e\u30b3\u30fc\u30c9 h = {a: 1, b: 2} h.default_proc = ->(h, k){raise \"Unknown key #{k}\"} h # => ... Hash.new{|h, k| raise \"Unknown key #{k}\"}.merg\u2026","author_url":"https://blog.hatena.ne.jp/osyo-manga/","published":"2020-07-09 20:39:21","blog_url":"https://secret-garden.hatenablog.com/","version":"1.0","blog_title":"Secret Garden(Instrumental)","provider_name":"Hatena Blog","author_name":"osyo-manga","categories":["Ruby","bugs.ruby"]}