<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Pyons</author_name>
  <author_url>https://blog.hatena.ne.jp/Pyons/</author_url>
  <blog_title>Pyons Tech Blog</blog_title>
  <blog_url>https://pyons.hatenablog.com/</blog_url>
  <categories>
    <anon>メタプログラミングRuby</anon>
  </categories>
  <description>動的なメソッド生成は同じような役割を持つメソッドを少しづつ役割を変えて、動的に生成することが出来る。 class Computer def initialize(computer_id, data_source) @id = computer_id @data_source = data_source end def self.define_component(name) define_method(name) do info = @data_source.send &quot;get_#{name}_info&quot;, @id price = @data_source.send &quot;get_#{name}_p…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpyons.hatenablog.com%2Fentry%2F2019%2F10%2F05%2F115643&quot; title=&quot;動的ディスパッチ/メソッドの使い方 - Pyons Tech Blog&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>2019-10-05 11:56:43</published>
  <title>動的ディスパッチ/メソッドの使い方</title>
  <type>rich</type>
  <url>https://pyons.hatenablog.com/entry/2019/10/05/115643</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
