<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shigemk2</author_name>
  <author_url>https://blog.hatena.ne.jp/shigemk2/</author_url>
  <blog_title>by shigemk2</blog_title>
  <blog_url>https://www.shigemk2.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>これは本当にすごい。 rubyで可変関数的に、オブジェクトのメソッドを文字列で指定して呼び出す。 - それマグで！PHPの可変関数と同じことをRubyで出来ないかなって思った。 class Hoge def hoge1 return 'nyan1' end def hoge2 return 'nyan2' end def hoge3 return 'nyan3' end end def method_name(a) return &quot;hoge#{a}&quot; end hoge = Hoge.new puts hoge.method(method_name(1)).call # =&gt; nyan1 put…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.shigemk2.com%2Fentry%2F20130923%2F1379929117&quot; title=&quot;可変関数をやってみよう - by shigemk2&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>2013-09-23 18:38:37</published>
  <title>可変関数をやってみよう</title>
  <type>rich</type>
  <url>https://www.shigemk2.com/entry/20130923/1379929117</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
