{"provider_url":"https://hatena.blog","version":"1.0","url":"https://tamata78.hatenablog.com/entry/2015/09/08/083401","provider_name":"Hatena Blog","categories":["Ruby","Ruby\u8cc7\u683c\u53d6\u5f97","\u30e1\u30bf\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u672c"],"type":"rich","height":"190","description":"\u95a2\u6570\u578b\u8a00\u8a9e\u3088\u308a\u306e\u6982\u5ff5\u3067\u3042\u308b\u30d6\u30ed\u30c3\u30af\u306b\u3064\u3044\u3066\u3001\u7406\u89e3\u3092\u6df1\u3081\u3066\u884c\u304f\u3002 \u30e1\u30bf\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0Rubyposted with \u30e8\u30e1\u30ec\u30d0Paolo Perrotta KADOKAWA/\u30a2\u30b9\u30ad\u30fc\u30fb\u30e1\u30c7\u30a3\u30a2\u30ef\u30fc\u30af\u30b9 2010-08-28 \u30d6\u30ed\u30c3\u30af\u306e\u57fa\u672c\u3092\u304a\u3055\u3089\u3044 \u30d6\u30ed\u30c3\u30af\u3092\u30e1\u30bd\u30c3\u30c9\u5185\u90e8\u3067\u6d3b\u7528\u3059\u308b yield\u3067\u30d6\u30ed\u30c3\u30af\u51e6\u7406\u3092\u5185\u90e8\u3067\u547c\u3073\u51fa\u3059\u3002 def my_method(who, greeting, count) who + yield(greeting, count) end my_method(\"Bob \", \"hello! \", 2) { |greet, count| greet * count} # \"Bo\u2026","author_url":"https://blog.hatena.ne.jp/tamata78/","width":"100%","blog_url":"https://tamata78.hatenablog.com/","title":"\u30e1\u30bf\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0 Ruby \u7b2c\uff13\u7ae0 \u30d6\u30ed\u30c3\u30af","published":"2015-09-08 08:34:01","image_url":"http://ecx.images-amazon.com/images/I/51TODrMIEnL.jpg","author_name":"tamata78","blog_title":"\u6c17\u8efd\u306b\u697d\u3057\u304f\u30d7\u30ed\u30b0\u30e9\u30e0\u3068\u904a\u3076","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftamata78.hatenablog.com%2Fentry%2F2015%2F09%2F08%2F083401\" title=\"\u30e1\u30bf\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0 Ruby \u7b2c\uff13\u7ae0 \u30d6\u30ed\u30c3\u30af - \u6c17\u8efd\u306b\u697d\u3057\u304f\u30d7\u30ed\u30b0\u30e9\u30e0\u3068\u904a\u3076\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}