{"published":"2017-02-27 00:00:27","author_name":"osyo-manga","height":"190","image_url":null,"url":"https://secret-garden.hatenablog.com/entry/2017/02/27/000027","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecret-garden.hatenablog.com%2Fentry%2F2017%2F02%2F27%2F000027\" title=\"Ruby \u3067 mixin \u3057\u305f\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u524a\u9664\u3059\u308b gem \u3092\u3064\u304f\u3063\u305f - Secret Garden(Instrumental)\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"Secret Garden(Instrumental)","type":"rich","version":"1.0","provider_name":"Hatena Blog","blog_url":"https://secret-garden.hatenablog.com/","categories":["Ruby"],"author_url":"https://blog.hatena.ne.jp/osyo-manga/","description":"Ruby \u3067\u30e1\u30bf\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u3084\u3063\u3066\u3044\u308b\u3068\u3069\u3046\u3057\u3066\u3082\u300emixin \u3057\u305f\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u524a\u9664\u3057\u305f\u3044\u300f\u3068\u3044\u3046\u6b32\u6c42\u306b\u304b\u3089\u308c\u308b\u306e\u3067\u3064\u304f\u308a\u307e\u3057\u305f\u3002 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb $ gem install unmixer \u4f7f\u3044\u65b9 require \"unmixer\" # Unmixer \u306f refinements \u3092\u4f7f\u7528\u3057\u3066\u308b\u306e\u3067 using \u3057\u3066\u4f7f\u7528\u3057\u307e\u3059 using Unmixer module M1; end module M2; end module M3; end class X include M1 prepend M2 end p X.ancestors # => [M2, X, M1, Object, Ke\u2026","provider_url":"https://hatena.blog","title":"Ruby \u3067 mixin \u3057\u305f\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u524a\u9664\u3059\u308b gem \u3092\u3064\u304f\u3063\u305f","width":"100%"}