{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgfx.hatenadiary.org%2Fentry%2F20091014%2F1255496982\" title=\"Yet another native traits in Moose - Islands in the byte stream (legacy)\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://gfx.hatenadiary.org/","version":"1.0","blog_title":"Islands in the byte stream (legacy)","width":"100%","categories":["Perl"],"height":"190","url":"https://gfx.hatenadiary.org/entry/20091014/1255496982","author_url":"https://blog.hatena.ne.jp/gfx/","published":"2009-10-14 14:09:42","title":"Yet another native traits in Moose","author_name":"gfx","provider_name":"Hatena Blog","type":"rich","description":"id:tokuhirom\u306e\u793a\u5506\u3092\u5f97\u3066\uff0cNative traits/AttributeHelpers\u306b\u3064\u3044\u3066\u8003\u3048\u3066\u307f\u305f\u3002 \u73fe\u5728Moose\u3067\u306fMX::AttributeHelpers\u304c\"Native traits\"\u3068\u3057\u3066\u7d44\u307f\u8fbc\u307f\u306b\u306a\u3063\u3066\u3044\u308b\u304c\uff0c\u305d\u308c\u306b\u3082\u304b\u304b\u308f\u3089\u305ahas()\u306e\u6642\u70b9\u3067traits => ['Array']\u306a\u3069\u3068\u3057\u306a\u3044\u3068\u4f7f\u7528\u3067\u304d\u306a\u3044\u3002\u3053\u308c\u306f\u5197\u9577\u3060\u3002 use Any::Moose; has foo => ( is => 'ro', isa => 'ArrayRef', traits => ['Array'], # \u5197\u9577 handles => { # ... }, ); \"isa\"\u3067Arra\u2026","provider_url":"https://hatena.blog","image_url":null}