{"image_url":null,"url":"https://secret-garden.hatenablog.com/entry/2021/05/30/001322","categories":["Ruby","bugs.ruby"],"blog_url":"https://secret-garden.hatenablog.com/","width":"100%","height":"190","author_name":"osyo-manga","published":"2021-05-30 00:13:22","description":"\u4eca\u9031\u306f prepend \u3057\u305f\u969b\u306e\u5b9a\u6570\u63a2\u7d22\u306e\u30d0\u30b0\u5831\u544a\u304c\u3042\u308a\u307e\u3057\u305f\u3002 \u5148\u9031\u306e\u307e\u3068\u3081 [Bug #17887] Missed constant lookup after prepend \u6b21\u306e\u3088\u3046\u306b prepend \u3057\u305f\u3068\u304d\u306e\u5b9a\u6570\u306e\u63a2\u7d22\u304c\u304a\u304b\u3057\u3044\u3068\u3044\u3046\u30d0\u30b0\u5831\u544a class A FOO = 'a' end class B < A def foo FOO end end b = B.new # \u30b9\u30fc\u30d1\u30fc\u30af\u30e9\u30b9\u306e FOO \u3092\u53c2\u7167\u3059\u308b\u306e\u3067\u3053\u308c\u306f\u6b63\u3057\u3044 p b.foo # => \"a\" module M FOO = 'm' end A.prepend M # A \u306b prepend \u3059\u308b\u3068 B \u306e\u7d99\u627f\u30ea\u30b9\u30c8\u306f\u3053\u2026","type":"rich","version":"1.0","blog_title":"Secret Garden(Instrumental)","author_url":"https://blog.hatena.ne.jp/osyo-manga/","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecret-garden.hatenablog.com%2Fentry%2F2021%2F05%2F30%2F001322\" title=\"2021/05/30 \u4eca\u9031\u306e\u6c17\u306b\u306a\u3063\u305f bugs.ruby \u306e\u30c1\u30b1\u30c3\u30c8 - 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":"2021/05/30 \u4eca\u9031\u306e\u6c17\u306b\u306a\u3063\u305f bugs.ruby \u306e\u30c1\u30b1\u30c3\u30c8","provider_url":"https://hatena.blog"}