<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>aereal</author_name>
  <author_url>https://blog.hatena.ne.jp/aereal/</author_url>
  <blog_title>『言葉を吐く』</blog_title>
  <blog_url>https://d.aereal.org/</blog_url>
  <categories>
    <anon>ruby</anon>
  </categories>
  <description>def get_each_const(const, context=::Object) const.to_s.split(/::/).inject(context) {|parent, c| parent.const_get(c) } end module Foo module Bar module Hoge module Fuga end end end end bar = get_each_const &quot;Foo::Bar&quot; # -&gt; Foo::Bar fuga = get_each_const &quot;Hoge::Fuga&quot;, bar # -&gt; Foo::Bar::Hoge::Fuga よくある…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fd.aereal.org%2Fentry%2F20091026%2F1256547144&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>2009-10-26 17:52:24</published>
  <title> ネストされた定数を取得する</title>
  <type>rich</type>
  <url>https://d.aereal.org/entry/20091026/1256547144</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
