<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yukiyan_w</author_name>
  <author_url>https://blog.hatena.ne.jp/yukiyan_w/</author_url>
  <blog_title>雑なメモ</blog_title>
  <blog_url>https://yukiyan.hatenablog.jp/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>Rubyの黒魔術を勉強中。 動的メソッドと動的ディスパッチについてまとめる。 意味 動的ディスパッチ 動的にメソッドを&quot;呼び出す&quot;こと。 動的メソッド 動的にメソッドを&quot;定義する&quot;こと。 ユースケース リファクタリングしながら理解していく。 例えば、こんなひどいコードでデータが格納されてるとする。 (本当はデータソースに接続する処理がinitializeに書かれてたりするけど、説明を簡単にするため、あえてこんな書き方にした。) class StudentData def get_ichiro_info &quot;genius&quot; end def get_ichiro_height 170 end def…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyukiyan.hatenablog.jp%2Fentry%2F2014%2F09%2F26%2F123500&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>http://ws-fe.amazon-adsystem.com/widgets/q?_encoding=UTF8&amp;ASIN=4048687158&amp;Format=_SL250_&amp;ID=AsinImage&amp;MarketPlace=JP&amp;ServiceVersion=20070822&amp;WS=1&amp;tag=yukiyan-22</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-09-26 12:35:00</published>
  <title>動的ディスパッチと動的メソッドについて学んだ</title>
  <type>rich</type>
  <url>https://yukiyan.hatenablog.jp/entry/2014/09/26/123500</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
