{"categories":["Ruby","Rails"],"provider_name":"Hatena Blog","description":"Ruby\u3067\u306f Hash#merge \u3092\u4f7f\u3046\u3053\u3068\u3067\u30012\u3064\u306e\u30cf\u30c3\u30b7\u30e5\u3092\u30de\u30fc\u30b8\u3067\u304d\u307e\u3059\u3002 Hash#merge (Ruby 3.2 \u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u30de\u30cb\u30e5\u30a2\u30eb) 2\u3064\u306e\u30cf\u30c3\u30b7\u30e5\u3067\u30ad\u30fc\u304c\u7570\u306a\u308b\u5834\u5408\u306f\u3001\u305d\u308c\u305e\u308c\u306e\u30ad\u30fc\u3092\u6301\u3064\u30cf\u30c3\u30b7\u30e5\u3078\u3068\u30de\u30fc\u30b8\u3055\u308c\u307e\u3059\u3002 h1 = { name: 'foo' } h2 = { color: 'red' } h1.merge(h2) #=> { name: 'foo', color: 'red' } \u4e00\u65b9\u30012\u3064\u306e\u30cf\u30c3\u30b7\u30e5\u3067\u30ad\u30fc\u304c\u91cd\u8907\u3059\u308b\u5834\u5408\u306f\u3001 merge \u30e1\u30bd\u30c3\u30c9\u306b\u6e21\u3057\u305f\u5f15\u6570\u306e\u30cf\u30c3\u30b7\u30e5\u306e\u5024\u304c\u4f7f\u308f\u308c\u307e\u3059\u3002 h1 = { name: 'foo' } h2 = { name: 'ba\u2026","title":"ActiveSupport\u306edeep_merge\u306b\u5bfe\u3057\u3001with_indifferent_access\u3068\u7d44\u307f\u5408\u308f\u305b\u305f\u308a\u3001block\u3092\u6e21\u3057\u3066\u307f\u305f\u308a\u3057\u3066\u307f\u305f","blog_url":"https://thinkami.hatenablog.com/","provider_url":"https://hatena.blog","published":"2023-05-06 23:18:13","width":"100%","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fthinkami.hatenablog.com%2Fentry%2F2023%2F05%2F06%2F231813\" title=\"ActiveSupport\u306edeep_merge\u306b\u5bfe\u3057\u3001with_indifferent_access\u3068\u7d44\u307f\u5408\u308f\u305b\u305f\u308a\u3001block\u3092\u6e21\u3057\u3066\u307f\u305f\u308a\u3057\u3066\u307f\u305f - \u30e1\u30e2\u7684\u306a\u601d\u8003\u7684\u306a\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/thinkAmi/","version":"1.0","blog_title":"\u30e1\u30e2\u7684\u306a\u601d\u8003\u7684\u306a","height":"190","author_name":"thinkAmi","image_url":null,"url":"https://thinkami.hatenablog.com/entry/2023/05/06/231813"}