{"author_name":"vestige","published":"2010-01-07 00:19:47","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fvestige.hateblo.jp%2Fentry%2F20100107%2F1262877587\" title=\"37th-2 - vestige\u306e\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u3068\u3044\u3046\u304b\u3001yield\u304c\u308f\u304b\u3093\u306a\u3044\u3002 \u521d\u3081\u3066\u306eRuby\u306e\u30b5\u30f3\u30d7\u30eb\u306f\u304b\u3044\u3066\u307f\u305f\u3002 def foo_bar_baz yield \"foo\" yield \"bar\" yield \"baz\" end foo_bar_baz do |item| puts item end \u3053\u308c\u306f\u4f55\u3068\u306a\u304f\u5206\u304b\u308b\u3002 \u3067\u3082\u3001\u6628\u65e5\u306e\u306f def [] = (key, value) replace(key) {|old_value| value} end def replace(key) tuple = @ts.take([name, key, nil]) tuple[2] = yield(tuple[2]) ensure @ts.\u2026","provider_url":"https://hatena.blog","title":"37th-2","url":"https://vestige.hateblo.jp/entry/20100107/1262877587","type":"rich","version":"1.0","blog_url":"https://vestige.hateblo.jp/","blog_title":"vestige\u306e\u30d6\u30ed\u30b0","categories":["toruby"],"provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/vestige/","width":"100%","image_url":null,"height":"190"}