<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shuzo_kino</author_name>
  <author_url>https://blog.hatena.ne.jp/shuzo_kino/</author_url>
  <blog_title>Bye Bye Moore</blog_title>
  <blog_url>https://shuzo-kino.hateblo.jp/</blog_url>
  <categories>
    <anon>ruby</anon>
  </categories>
  <description>&gt; str = &quot;test&quot; という文字列があるとします。 これにinstance_evalメソッドをブロック付きで実行すると、追加の文字列を作れます。 &gt; str.instance_eval {|e| &quot;hogehoge %s&quot; % [e]} =&gt; &quot;hogehoge test&quot; この程度だと旨味がありませんね。 では、これならどうでしょう？？ &gt; str.instance_eval {&quot;hogehoge %s&quot; % [reverse]} =&gt; &quot;hogehoge tset&quot; 文字列をひっくり返すreverseメソッドを使って愉快な事ができます。 挙げ句の果てに、コレ、インスタンスに対して複…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshuzo-kino.hateblo.jp%2Fentry%2F2013%2F12%2F08%2F221013&quot; title=&quot;instance_eval()を使うとブロック内でメソッドを呼び出せる - Bye Bye Moore&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://ecx.images-amazon.com/images/I/51QgbjfMaHL.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-12-08 22:10:13</published>
  <title>instance_eval()を使うとブロック内でメソッドを呼び出せる</title>
  <type>rich</type>
  <url>https://shuzo-kino.hateblo.jp/entry/2013/12/08/221013</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
