<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kkos</author_name>
  <author_url>https://blog.hatena.ne.jp/kkos/</author_url>
  <blog_title>報國挺身日記</blog_title>
  <blog_url>https://kkos.hatenadiary.org/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>yarv-dev:797で、定数参照のルールとして、ネストしたmoduleの一番外側(つまりObjectクラス)での参照をスキップして、クラス継承のほうに移っていくことに疑問が出ていた。 これはどうしてスキップしているのかというと、Objectクラスでの参照を先にしてしまうと、クラス継承での参照順位(下位から上位クラスへ)と合わなくなるからだろう。 しかし、例として挙げられている場合の不自然さも理解できる。 一番外側のObjectクラスを単純にスキップするのではなく、一応参照してみた値が、定数参照を開始した位置のmodule自身の値に一致する場合だけは、その値として参照解決させるという仕様すれ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkkos.hatenadiary.org%2Fentry%2F20060203%2F1138973415&quot; title=&quot; 定数参照 - 報國挺身日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2006-02-03 22:30:15</published>
  <title> 定数参照</title>
  <type>rich</type>
  <url>https://kkos.hatenadiary.org/entry/20060203/1138973415</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
