<?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>Rubyには多数の文字列リテラルが存在する。1つずつ見てみよう。まず式展開が不要な文字列はシングルクオート'を使う。'と\以外、エスケープが不要なのも利点である。 p 'foo' #=&gt; &quot;foo&quot; 式展開が必要な文字列はダブルクオート&quot;を使う。Rubyの文字列の中で最も基本的なリテラルと言えるだろう。 p &quot;foo&quot; #=&gt; &quot;foo&quot; 式展開が不要で、記号を多用したい場合は、%qによる文字列リテラルが便利だ。リテラルを囲う文字は自由に選択できる。また改行を含むこともできる。 p %q(foo) #=&gt; &quot;foo&quot; %Qは%qの式展開ありのバージョンだ。式展開が必要な場合はこちらを使う。 p…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frubytips86.hatenablog.com%2Fentry%2F2014%2F04%2F02%2F192847&quot; title=&quot;Rubyの文字列リテラルについて - 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-04-02 19:28:47</published>
  <title>Rubyの文字列リテラルについて</title>
  <type>rich</type>
  <url>https://rubytips86.hatenablog.com/entry/2014/04/02/192847</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
