<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>akm</author_name>
  <author_url>https://blog.hatena.ne.jp/akm/</author_url>
  <blog_title>akimatter</blog_title>
  <blog_url>https://akm.hatenadiary.org/</blog_url>
  <categories>
    <anon>ruby</anon>
  </categories>
  <description>Reflection, ObjectSpace, and Distributed Ruby Rubyで動的に与えられたメソッド名からメソッドを呼び出すのってどうやるんだろう？って思ってreflectionっていうキーワードで検索したら、見つかりました。めっちゃ簡単じゃないですか。素敵過ぎ。 obj.send( &quot;some_method&quot; ) if obj.respond_to?( &quot;some_method&quot; )some_methodというメソッドが実装されてたら(正確にはpublicだったら)それを引数なしで呼び出すコード。 それからActiveRecord::Baseから派生したクラスに、あ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fakm.hatenadiary.org%2Fentry%2F20060425%2F1145946593&quot; title=&quot; Reflection - akimatter&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-04-25 15:29:53</published>
  <title> Reflection</title>
  <type>rich</type>
  <url>https://akm.hatenadiary.org/entry/20060425/1145946593</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
