<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rubytips86</author_name>
  <author_url>https://blog.hatena.ne.jp/rubytips86/</author_url>
  <blog_title>Ruby Tips!</blog_title>
  <blog_url>https://rubytips86.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>配列の要素を連結して文字列化するにはArray#joinを使う。デフォルトでは単に要素が連結される。 p ['foo', 'bar', 'buz'].join #=&gt; &quot;foobarbuz&quot; Array#joinには引数でセパレータを指定することができる。例えばCSV風に配列を文字列化するには以下のようにする。 p ['foo', 'bar', 'buz'].join(',') #=&gt; &quot;foo,bar,buz&quot; Array#joinは文字列でない要素に対してto_sで文字列化を試みる。よって以下も問題なく動作する。 p [1, /abc/, :a, Object.new].join(' ')…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frubytips86.hatenablog.com%2Fentry%2F2014%2F03%2F25%2F141326&quot; title=&quot;配列の要素を連結して文字列化する - Ruby Tips!&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>2014-03-25 14:13:26</published>
  <title>配列の要素を連結して文字列化する</title>
  <type>rich</type>
  <url>https://rubytips86.hatenablog.com/entry/2014/03/25/141326</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
