{"image_url":null,"blog_title":"http://rubikitch.com/\u306b\u79fb\u8ee2\u3057\u307e\u3057\u305f","author_url":"https://blog.hatena.ne.jp/rubikitch/","blog_url":"https://rubikitch.hatenadiary.org/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Frubikitch.hatenadiary.org%2Fentry%2F20080703%2F1215058761\" title=\"Rails\u306ereturning\u3063\u3066Object#tap\u3058\u3083\u306a\u3044\u304b\uff01 - http://rubikitch.com/\u306b\u79fb\u8ee2\u3057\u307e\u3057\u305f\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"rubikitch","type":"rich","url":"https://rubikitch.hatenadiary.org/entry/20080703/1215058761","published":"2008-07-03 13:19:21","provider_name":"Hatena Blog","title":"Rails\u306ereturning\u3063\u3066Object#tap\u3058\u3083\u306a\u3044\u304b\uff01","height":"190","description":"http://d.hatena.ne.jp/takihiro/20080701/1214919182 # A Ruby-ized realization of the K combinator, courtesy of Mikael Brockman. # # def foo # returning values = [] do # values << 'bar' # values << 'baz' # end # end # # foo # => ['bar', 'baz'] # # def foo # returning [] do |values| # values << 'bar' #\u2026","version":"1.0","provider_url":"https://hatena.blog","categories":["ruby"],"width":"100%"}