{"author_name":"tbpg","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftbpgr.hatenablog.com%2Fentry%2F20140630%2F1404133829\" title=\"Ruby | Module | nesting - Tbpgr Blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/tbpg/","width":"100%","published":"2014-06-30 22:10:29","title":"Ruby | Module | nesting","provider_url":"https://hatena.blog","type":"rich","blog_url":"https://tbpgr.hatenablog.com/","blog_title":"Tbpgr Blog","categories":["Ruby"],"image_url":null,"provider_name":"Hatena Blog","description":"\u6982\u8981 Module.nesting -> [Class, Module] \u8a73\u7d30 \u3053\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3057\u305f\u6642\u70b9\u3067\u306e\u30af\u30e9\u30b9/\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u30cd\u30b9\u30c8\u60c5\u5831\u3092\u914d\u5217\u3067\u8fd4\u5374 \u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9 require 'tbpgr_utils'require 'tbpgr_utils' module HogeModule class HogeClass def hoge Module.nesting end end end h = HogeModule::HogeClass.new bulk_puts_eval binding, <<-EOS Module.nesting h.hoge EOS __END__ \u4e0b\u8a18\u306fTbp\u2026","height":"190","url":"https://tbpgr.hatenablog.com/entry/20140630/1404133829","version":"1.0"}