<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>unageanu</author_name>
  <author_url>https://blog.hatena.ne.jp/unageanu/</author_url>
  <blog_title>うなの日記</blog_title>
  <blog_url>https://unageanu.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>Deamonizeのソースより。ObjectSpace.each_object()を使うと、生成されているオブジェクトの一覧を取得できます。引数でクラスorモジュールを指定すると、そのクラスorモジュールを継承するオブジェクトが列挙されます。 # ねこ class Kitten def initialize( name, children=[] ) @name = name @children = children end attr :name end # ねこを3x3作成。 kittens = [] 3.times {|i| name = &quot;kitten-&quot; + i.to_s childre…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Funageanu.hatenablog.com%2Fentry%2F20080126%2F1201341032&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>2008-01-26 18:50:32</published>
  <title> 生成されているオブジェクト一覧の取得</title>
  <type>rich</type>
  <url>https://unageanu.hatenablog.com/entry/20080126/1201341032</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
