<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>unageanu</author_name>
  <author_url>https://blog.hatena.ne.jp/unageanu/</author_url>
  <blog_title>うなの日記</blog_title>
  <blog_url>https://unageanu.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>引数に「*」 を付けると「残りのすべての引数」が格納される可変長引数となりますが、これにはブロック引数は含まれません。たとえば「method_missing」を使って簡単なプロキシを書く場合、以下のように書いてしまうとブロック引数が渡されません。 # 委譲先クラス class Kitten def meow( prefix, &amp;suffix ) &quot;#{prefix} meow! #{ suffix &amp;&amp; suffix.call}&quot; end end # method_missingを使うプロキシ class Proxy def initialize( delegate ) @delegate =…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Funageanu.hatenablog.com%2Fentry%2F20081102%2F1225614457&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-11-02 17:27:37</published>
  <title> 可変長引数にはブロック引数は含まれない。</title>
  <type>rich</type>
  <url>https://unageanu.hatenablog.com/entry/20081102/1225614457</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
