<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kuronekopunk</author_name>
  <author_url>https://blog.hatena.ne.jp/kuronekopunk/</author_url>
  <blog_title>ノンカフェインであなたにやさしい</blog_title>
  <blog_url>https://akinobu.net/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>こんなやつが出てきて挙動が分からず困っていたら多重代入というやつらしい。 a, b = Hoge.moge 多重代入についてまとめます。 左辺が1つで右辺が複数の場合 配列に変換される a = 1, 2 #=&gt; [1, 2] a #=&gt; [1, 2] 左辺、右辺ともに2つの場合 左辺の各変数に右辺の各要素が代入される a, b = 1, 2 #=&gt; [1, 2] a #=&gt; 1 b #=&gt; 2 左辺の数が多い場合 左辺の残りにnilが代入される a, b = 1 #=&gt; 1 a #=&gt; 1 b #=&gt; nil 右辺の数が多い場合 余った要素は無視される a, b = 1, 2, 3 #=&gt; […</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fakinobu.net%2Fentry%2F2017%2F03%2F08%2F215618&quot; title=&quot;Rubyの多重代入　,(カンマ)で区切られた代入の挙動 - ノンカフェインであなたにやさしい&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>2017-03-08 21:56:18</published>
  <title>Rubyの多重代入　,(カンマ)で区切られた代入の挙動</title>
  <type>rich</type>
  <url>https://akinobu.net/entry/2017/03/08/215618</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
