{"width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjonny.hatenablog.com%2Fentry%2F2014%2F03%2F07%2F145731\" title=\"ruby\u306erequire/include/extend/\u7d99\u627f/\u30af\u30e9\u30b9\u62e1\u5f35\u30df\u30c3\u30af\u30b9\u30a4\u30f3\u307e\u3068\u3081 - A Life on Rails\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2014-03-07 14:57:31","image_url":null,"author_name":"jonny8","blog_title":"A Life on Rails","blog_url":"https://jonny.hatenablog.com/","author_url":"https://blog.hatena.ne.jp/jonny8/","title":"ruby\u306erequire/include/extend/\u7d99\u627f/\u30af\u30e9\u30b9\u62e1\u5f35\u30df\u30c3\u30af\u30b9\u30a4\u30f3\u307e\u3068\u3081","height":"190","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","version":"1.0","categories":["ruby"],"description":"require/include/extend/\u7d99\u627f\u306e\u9055\u3044 require \u5916\u90e8\u30e9\u30a4\u30d6\u30e9\u30ea\u30d5\u30a1\u30a4\u30eb\u306e\u8aad\u307f\u8fbc\u307f include \u30af\u30e9\u30b9\u3067\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u3059\u308b\u3068\u3001\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u30e1\u30bd\u30c3\u30c9\u304c\u624b\u306b\u5165\u308b obj.my_method \u30af\u30e9\u30b9\u30e1\u30bd\u30c3\u30c9\u3092\u624b\u306b\u5165\u308c\u308b\u306b\u306f\u3001\u30af\u30e9\u30b9\u306e\u7279\u7570\u30af\u30e9\u30b9\u3067\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u3059\u308b\uff1aMyClass.my_method \u305d\u308c\u3092\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u3059\u308b\u306e\u304cextends\u3002\uff1aMyClass.my_method module A def hello \"hello\" end end class B include A end test = B.new test.hello =\u2026","url":"https://jonny.hatenablog.com/entry/2014/03/07/145731","type":"rich"}