<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tbpg</author_name>
  <author_url>https://blog.hatena.ne.jp/tbpg/</author_url>
  <blog_title>Tbpgr Blog</blog_title>
  <blog_url>https://tbpgr.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>概要 %記法で文字列配列の記述を簡易化する方法について 内容 %記法を使用することで、配列の初期化の記述を簡易化することができます。 構文 式展開無効 array = %w{str1 str2 str3} 式展開有効 variable = &quot;hoge&quot; array = %W{#{variable}str1 str2 str3} サンプル string_array1 = ['hoge', 'hoo', 'bar'] # =&gt; 通常の配列初期化 p string_array1 string_array2 = %w{hoge hoo bar} # =&gt; %記法による文字列配列の指定 ※式展開無効 p…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftbpgr.hatenablog.com%2Fentry%2F20120504%2F1336143037&quot; title=&quot;Javaプログラマーが学ぶRuby基礎／%記法で文字列配列の記述を簡易化 - Tbpgr 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>2012-05-04 23:50:37</published>
  <title>Javaプログラマーが学ぶRuby基礎／%記法で文字列配列の記述を簡易化</title>
  <type>rich</type>
  <url>https://tbpgr.hatenablog.com/entry/20120504/1336143037</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
