<?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># idと名前の2次元配列、CSVの配列などを使う時に便利 arr =[ [1, 'hoge'], [2, 'moge'], ] arr.each do |id, name| puts id, name end # 出力 # 1 # hoge # 2 # moge 以下と同等のことが出来ます arr.each do |values| id, name = values puts id, name end each_with_indexでも可能 # ()でくくる必要があります arr.each_with_index do |(id, name), index| puts id, name end</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fakinobu.net%2Fentry%2F2020%2F08%2F06%2F174137&quot; title=&quot;Ruby eachの引数で配列を展開する - ノンカフェインであなたにやさしい&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>2020-08-06 17:41:37</published>
  <title>Ruby eachの引数で配列を展開する</title>
  <type>rich</type>
  <url>https://akinobu.net/entry/2020/08/06/174137</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
