<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Yamakichi</author_name>
  <author_url>https://blog.hatena.ne.jp/Yamakichi/</author_url>
  <blog_title>blog</blog_title>
  <blog_url>https://yamakichi.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>Tips</anon>
    <anon>思考の整理</anon>
  </categories>
  <description>Rubyの配列展開 array = [&quot;a&quot;, &quot;b&quot;, &quot;c&quot;] *array # =&gt; a # =&gt; b # =&gt; c arrayのオブジェクトが入った変数の先頭に*(アスタリスク)をつけることでarray[0] array[1] array[2] の出力をしてくれる。 Rubyの中でも地味な機能ではあるけれども便利。筆者はこの機能で救われた。 動的に変わる引数に対してActiveRecordでLIKE検索を行いたい時に役に立った。 CSV.foreach(path) do |keywords| keywords.join(&quot;, &quot;).split.each do |keyword| que…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyamakichi.hatenablog.com%2Fentry%2F2016%2F10%2F18%2F232253&quot; title=&quot;Rubyの配列展開 *[a, b, c] - blog&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>2016-10-18 23:22:53</published>
  <title>Rubyの配列展開 *[a, b, c]</title>
  <type>rich</type>
  <url>https://yamakichi.hatenablog.com/entry/2016/10/18/232253</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
