{"provider_name":"Hatena Blog","image_url":null,"title":"Ruby\u306e\u30d6\u30ed\u30c3\u30af\u69cb\u6587","height":"190","author_name":"bawsin","width":"100%","author_url":"https://blog.hatena.ne.jp/bawsin/","published":"2007-02-19 02:23:35","blog_url":"https://bawsin.hatenablog.com/","blog_title":"Ruby\u306e\u8f1d\u304d","categories":["Ruby"],"provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbawsin.hatenablog.com%2Fentry%2F20070219%2F1171905815\" title=\"Ruby\u306e\u30d6\u30ed\u30c3\u30af\u69cb\u6587 - Ruby\u306e\u8f1d\u304d\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"Ruby\u306f\u3001\u300c\u30d6\u30ed\u30c3\u30af\u69cb\u6587\u300d\u3068\u3044\u3046\u6a5f\u80fd\u3092\u6a19\u6e96\u3067\u5099\u3048\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u3092\u4f7f\u3046\u3068\u3001AOP\u306b\u985e\u4f3c\u3057\u305f\u6a5f\u80fd\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002 \u5b9f\u969b\u306b\u4f8b\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002 \u307e\u305a\u3001\u300cyield\u300d\u3068\u3044\u3046\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u8a18\u8ff0\u3057\u305f\u30e1\u30bd\u30c3\u30c9\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002 def testblock puts \"begin operation\"; yield puts \"end operation\"; end \u300cyield\u300d\u306e\u524d\u5f8c\u3067\u6587\u5b57\u5217\u3092\u51fa\u529b\u3059\u308b\u3060\u3051\u306e\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002 \u6b21\u306b\u3001\u4e0a\u8a18\u3067\u5b9a\u7fa9\u3057\u305f\u30e1\u30bd\u30c3\u30c9\u3092\u5229\u7528\u3059\u308b\u30b3\u30fc\u30c9\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002 testblock { puts \"method execution!\"; } \u5b9f\u884c\u7d50\u679c\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002 begin op\u2026","url":"https://bawsin.hatenablog.com/entry/20070219/1171905815","type":"rich","version":"1.0"}