{"version":"1.0","width":"100%","title":"Groovy 2.3\u304a\u3088\u30732.4\u306b\u304a\u3051\u308bTrait\u306e\u5dee\u7570","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fint128.hatenablog.com%2Fentry%2F2016%2F03%2F06%2F202427\" title=\"Groovy 2.3\u304a\u3088\u30732.4\u306b\u304a\u3051\u308bTrait\u306e\u5dee\u7570 - GeekFactory\" 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":"int128","blog_url":"https://int128.hatenablog.com/","url":"https://int128.hatenablog.com/entry/2016/03/06/202427","type":"rich","published":"2016-03-06 20:24:27","categories":["groovy"],"provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/int128/","blog_title":"GeekFactory","image_url":null,"provider_url":"https://hatena.blog","height":"190","description":"Groovy SSH\u306e\u958b\u767a\u3067\u6c17\u3065\u3044\u305f\u306e\u3067\u3059\u304c\u3001Groovy 2.3\u30682.4\u3067Trait\u306e\u6319\u52d5\u304c\u5fae\u5999\u306b\u7570\u306a\u308b\u3088\u3046\u3067\u3059\u3002 2.3\u304b\u30892.4\u306b\u4e0a\u3052\u305f\u3068\u3053\u308d\u3001Trait\u306e\u30e1\u30bd\u30c3\u30c9\u306b\u66f8\u3044\u305f\u30af\u30ed\u30fc\u30b8\u30e3\u3092delegate\u6307\u5b9a\u3067\u5b9f\u884c\u3057\u3066\u3082delegate\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3084\u30e1\u30bd\u30c3\u30c9\u304c\u89e3\u6c7a\u3067\u304d\u306a\u3044\u554f\u984c\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002\u4f8b\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u306e\u5b9f\u884c\u7d50\u679c\u306f2.3\u30682.4\u3067\u7570\u306a\u308a\u307e\u3059\u3002 // \u30af\u30ed\u30fc\u30b8\u30e3\u3092delegate\u6307\u5b9a\u3067\u5b9f\u884c\u3059\u308b class U { static <T> T callWithDelegate(Closure<T> closure, Object delegate) { def cloned = closu\u2026"}