<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gan2</author_name>
  <author_url>https://blog.hatena.ne.jp/gan2/</author_url>
  <blog_title>gan2 の Ruby 勉強日記</blog_title>
  <blog_url>https://gan2-2.hatenadiary.org/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>Array#join(sep)を使うと、 配列の各要素間にsepを挟むことができる。 &quot;\n&quot;を挟みたいときはArray#join(&quot;\n&quot;)という具合に。 で、join(&quot;\n&quot;)の別表記として以下の2つがある。 *(&quot;\n&quot;) *($/) 以下のスクリプトで実験して確かめてみる。 ary = %w(北海道 青森 秋田 岩手) p ary.join(&quot;\n&quot;) p ary.*(&quot;\n&quot;) p ary.*($/) 3つとも返す値は同じ。 ゴルフテクニックって感じ。 &quot;北海道\n青森\n秋田\n岩手&quot;</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgan2-2.hatenadiary.org%2Fentry%2F20070601%2F1180680977&quot; title=&quot; Array#join(&amp;quot;\n&amp;quot;)の別表記 - gan2 の 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>2007-06-01 15:56:17</published>
  <title> Array#join(&quot;\n&quot;)の別表記</title>
  <type>rich</type>
  <url>https://gan2-2.hatenadiary.org/entry/20070601/1180680977</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
