<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>akishin999</author_name>
  <author_url>https://blog.hatena.ne.jp/akishin999/</author_url>
  <blog_title>akishin999の日記</blog_title>
  <blog_url>https://akishin.hatenablog.jp/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>最近知った Ruby のヒアドキュメントのあまり見かけない（？）機能をいくつか備忘録としてまとめてみました。 メソッドの引数に渡せる 以下のようにしてヒアドキュメントをメソッドの引数にそのまま渡せます。 def here_method(arg1, arg2, arg3) puts arg1 puts arg2 puts arg3 end here_method(&quot;hoge&quot;, &lt;&lt;EOS, &quot;fuga&quot;) foo bar baz EOS # =&gt; hoge foo bar baz fuga 複数のヒアドキュメントを引数として渡すことも可能だったりします。 こうなるともう何がなんだか・・・。 h…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fakishin.hatenablog.jp%2Fentry%2F20121220%2F1356011301&quot; title=&quot; Ruby のヒアドキュメントのあまり見かけない使い方 - akishin999の日記&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-12-20 22:48:21</published>
  <title> Ruby のヒアドキュメントのあまり見かけない使い方</title>
  <type>rich</type>
  <url>https://akishin.hatenablog.jp/entry/20121220/1356011301</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
