{"blog_title":"Secret Garden(Instrumental)","height":"190","width":"100%","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecret-garden.hatenablog.com%2Fentry%2F2015%2F07%2F11%2F000000\" title=\"Ruby \u3067 include \u5f8c\u306b prepend \u3092\u884c\u3063\u3066\u3082\u53cd\u6620\u3055\u308c\u306a\u3044 - 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>","title":"Ruby \u3067 include \u5f8c\u306b prepend \u3092\u884c\u3063\u3066\u3082\u53cd\u6620\u3055\u308c\u306a\u3044","categories":["Ruby"],"provider_name":"Hatena Blog","published":"2015-07-11 00:00:00","author_url":"https://blog.hatena.ne.jp/osyo-manga/","author_name":"osyo-manga","description":"\u5f53\u305f\u308a\u524d\u3068\u3044\u3048\u3070\u5f53\u305f\u308a\u524d\u306a\u6c17\u3082\u3059\u308b\u3051\u3069\u2026\u3002 Ruby \u3067 #prepend \u3092\u547c\u3073\u51fa\u3057\u3066\u3082\u53cd\u6620\u3055\u308c\u306a\u304f\u3066\u30cf\u30de\u3063\u305f\u3002 \u3069\u3046\u3044\u3046\u3053\u3068\u304b\u3068\u3044\u3046\u3068\u3053\u3046\u3044\u3046\u3053\u3068\u3002 module A def func puts \"A\" super end end module B def func puts \"B\" end end include B # include \u3088\u308a\u3082\u3042\u3068\u3067 prepend \u3092\u8ffd\u52a0\u3057\u3066\u3082 A \u306e\u30e1\u30bd\u30c3\u30c9\u306f\u53cd\u6620\u3055\u308c\u306a\u3044 module B prepend A end func # => \"B#func\" \u6700\u8fd1 Ruby \u306e module \u3092\u8abf\u3079\u3066\u3044\u308b\u3093\u3067\u3059\u304c\u5168\u304f\u308f\u304b\u3089\u3093\u3053\u3002 \u8ab0\u304b Ruby \u306e mo\u2026","provider_url":"https://hatena.blog","image_url":null,"blog_url":"https://secret-garden.hatenablog.com/","type":"rich","url":"https://secret-garden.hatenablog.com/entry/2015/07/11/000000"}