{"width":"100%","blog_title":"Secret Garden(Instrumental)","provider_name":"Hatena Blog","description":"\u3053\u308c\u3092\u7c21\u5358\u306b\u66f8\u3051\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u305f\u304f\u3066\u66f8\u3044\u3066\u307f\u305f\u3002 class Enumerator def with_self &block with_object self, &block end end module Enumerable def each_with_self &block each_with_object self, &block end end [1, 2, 3].each_with_self { |it, myself| p \"#{it} : #{myself.class}\" } # => # \"1 : Array\" # \"2 : Array\" # \"3 : Array\" p [1,\u2026","image_url":null,"provider_url":"https://hatena.blog","title":"Ruby \u3067 #each_with_self \u3092\u66f8\u3044\u3066\u307f\u305f","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecret-garden.hatenablog.com%2Fentry%2F2015%2F08%2F20%2F221455\" title=\"Ruby \u3067 #each_with_self \u3092\u66f8\u3044\u3066\u307f\u305f - 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>","version":"1.0","height":"190","categories":["Ruby"],"author_name":"osyo-manga","blog_url":"https://secret-garden.hatenablog.com/","type":"rich","published":"2015-08-20 22:14:55","url":"https://secret-garden.hatenablog.com/entry/2015/08/20/221455","author_url":"https://blog.hatena.ne.jp/osyo-manga/"}