<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tmd45</author_name>
  <author_url>https://blog.hatena.ne.jp/tmd45/</author_url>
  <blog_title>TMD45'β'LOG!!!</blog_title>
  <blog_url>https://blog.betaful.life/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>普通に Ruby Reference Manual に載ってたやつで解決。 メソッド呼び出し(super・ブロック付き・yield) (Ruby 2.3.0) 引数の直前に * がついている場合、その引数の値が展開されて 渡されます。展開はメソッド to_a を経由して行なわれます。 def f1 [1, 2] end def f2(one, two) p &quot;#{one}, #{two}&quot; end f2(f1) #=&gt; ArgumentError: wrong number of arguments (given 1, expected 2) f2(*f1) #=&gt; &quot;1, 2&quot; あわせて読み…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.betaful.life%2Fentry%2F2016%2F11%2F01%2F184857&quot; title=&quot;メソッドの戻り値である配列を展開して他のメソッドの引数に使う - TMD45&amp;#39;β&amp;#39;LOG!!!&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>https://cdn.mogile.archive.st-hatena.com/v1/image/tmd45/297791867729032195.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-11-01 18:48:57</published>
  <title>メソッドの戻り値である配列を展開して他のメソッドの引数に使う</title>
  <type>rich</type>
  <url>https://blog.betaful.life/entry/2016/11/01/184857</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
