{"image_url":null,"provider_url":"https://hatena.blog","blog_title":"\u8fba\u5883\u306e\u65e5\u3005 (\u65e7:\u4e16\u754c\u7dda\u822a\u8de1\u8535)","published":"2009-11-16 02:21:48","url":"https://blog.yugui.jp/entry/846","categories":["ruby"],"width":"100%","description":"Yehuda Katz wrote an article about self and metaclass. In the article he said that Person.instance_eval assigns Person's metaclass to self for a class Person. But this is obviously wrong.class Person; end Person.instance_eval{ p self } #=> Person ...","title":"Three implicit contexts in Ruby","provider_name":"Hatena Blog","height":"190","type":"rich","author_name":"yugui","blog_url":"https://blog.yugui.jp/","version":"1.0","author_url":"https://blog.hatena.ne.jp/yugui/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.yugui.jp%2Fentry%2F846\" title=\"Three implicit contexts in Ruby - \u8fba\u5883\u306e\u65e5\u3005 (\u65e7:\u4e16\u754c\u7dda\u822a\u8de1\u8535)\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}