{"type":"rich","published":"2018-12-05 00:00:00","width":"100%","provider_url":"https://hatena.blog","image_url":null,"author_name":"tmtms","blog_url":"https://blog.tmtms.net/","provider_name":"Hatena Blog","categories":["Ruby","Ruby2.6"],"blog_title":"tmtms \u306e\u30e1\u30e2","description":"Ruby2.6\u30a2\u30c9\u30d9\u30f3\u30c8\u30ab\u30ec\u30f3\u30c0\u30fc\u306e5\u65e5\u76ee\u306e\u8a18\u4e8b\u3067\u3059\u3002 qiita.com Hash Hash#merge, merge!, update \u304c\u8907\u6570\u306e\u5f15\u6570\u3092\u53d7\u3051\u3064\u3051\u308b Hash#to_h \u306b\u30d6\u30ed\u30c3\u30af\u3092\u6e21\u3059\u3068\u30ad\u30fc\u3068\u5024\u3092\u5909\u63db\u3067\u304d\u308b Hash#filter, Hash#filter! \u306e\u8ffd\u52a0 Hash Hash#merge, merge!, update \u304c\u8907\u6570\u306e\u5f15\u6570\u3092\u53d7\u3051\u3064\u3051\u308b https://bugs.ruby-lang.org/issues/15111 h = {a: 123} h1 = {b: 456} h2 = {c: 789} h.merge(h1).merge(h2) #=> {:a=>\u2026","author_url":"https://blog.hatena.ne.jp/tmtms/","version":"1.0","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.tmtms.net%2Fentry%2F201812%2Fruby26-hash\" title=\"Ruby 2.6 \u306e\u5909\u66f4\u70b9 - Hash - tmtms \u306e\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://blog.tmtms.net/entry/201812/ruby26-hash","title":"Ruby 2.6 \u306e\u5909\u66f4\u70b9 - Hash"}