{"height":"190","author_name":"gfx","provider_url":"https://hatena.blog","description":"\u4e92\u3044\u306b\u7d99\u627f\u95a2\u4fc2\u304c\u306a\u304f\u3066\u3082Role\u3092\u9069\u7528\u3057\u3066\u3044\u306a\u304f\u3066\u3082 duck_type() \u3092\u4f7f\u3048\u3070OK\uff01\u3057\u304b\u3082\u81ea\u524d\u3067 can() \u3059\u308b\u3088\u308a\u9ad8\u901f\u306a\u30b9\u30b0\u30ec\u30e2\u30ce*1\u3002 use strict; use warnings; package Foo { use Mouse; sub x { 1 } __PACKAGE__->meta->make_immutable(); } package Bar { use Mouse; sub x { 2 } __PACKAGE__->meta->make_immutable(); } package Baz { use Mouse; __PACKAGE__->meta->mak\u2026","type":"rich","url":"https://gfx.hatenadiary.org/entry/20130319/1363705582","image_url":null,"blog_title":"Islands in the byte stream (legacy)","version":"1.0","title":" Mouse\u3067\u300c\u3042\u308b\u30e1\u30bd\u30c3\u30c9\u3092\u6301\u3063\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u3068\u3044\u3046\u5236\u7d04\u3092\u3064\u304f\u308b","provider_name":"Hatena Blog","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgfx.hatenadiary.org%2Fentry%2F20130319%2F1363705582\" title=\" Mouse\u3067\u300c\u3042\u308b\u30e1\u30bd\u30c3\u30c9\u3092\u6301\u3063\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u3068\u3044\u3046\u5236\u7d04\u3092\u3064\u304f\u308b - 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/","categories":[],"author_url":"https://blog.hatena.ne.jp/gfx/","published":"2013-03-19 00:06:22"}