<?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>はじめに Ruby silverの勉強をしていたところ、ヒアドキュメントが中々理解できなかったので調べてまとめました。 ヒアドキュメントとは？ 複数行の文字列を扱う際によく使われる機能です。 str = &lt;&lt;EOS apple banana EOS p str # 実行結果 # &quot; apple\n banana\n&quot; 使い方 基本：&lt;&lt;演算子 &lt;&lt;を使い、開始・終了には同じ識別子を使います。 識別子は自由に設定できますが、EOSやEOFが多いイメージです。 開始の識別子の次の行～末尾の識別子を文字列として扱う。 最後に改行が入る点に注意。 str = &lt;&lt;EOS apple banana EO…</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%2Fhear-doc&quot; title=&quot;【Ruby】ヒアドキュメントの使い方 - ランド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-22 00:00:00</published>
  <title>【Ruby】ヒアドキュメントの使い方</title>
  <type>rich</type>
  <url>https://ml-rand-note.hatenablog.com/entry/ruby/hear-doc</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
