<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>round-rand</author_name>
  <author_url>https://blog.hatena.ne.jp/round-rand/</author_url>
  <blog_title>ランドML</blog_title>
  <blog_url>https://ml-rand-note.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>%w：文字列の配列を作成(変数展開×) %W：文字列の配列を作成(変数展開〇) %i：シンボルの配列を作成(変数展開×) %I：シンボルの配列を作成(変数展開〇) 参考 %w：文字列の配列を作成(変数展開×) ダブルクォートで囲んだ文字列を空白で分割したもの 例えば、 arr1 = [&quot;a&quot;, &quot;b&quot;, &quot;c&quot;] arr2 = %w(a b c) は同じ配列である。 arr = %w(apple orange grape) p arr #=&gt; [&quot;apple&quot;, &quot;orange&quot;, &quot;grape&quot;] %W：文字列の配列を作成(変数展開〇) %wと似ていますが、式展開が可能になります。 frui…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fml-rand-note.hatenablog.com%2Fentry%2Fruby%2Fliteral-percent&quot; title=&quot;【Ruby】%記法(%w, %W, %i, %I) - ランドML&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>2026-06-23 20:01:30</published>
  <title>【Ruby】%記法(%w, %W, %i, %I)</title>
  <type>rich</type>
  <url>https://ml-rand-note.hatenablog.com/entry/ruby/literal-percent</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
