<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>osyo-manga</author_name>
  <author_url>https://blog.hatena.ne.jp/osyo-manga/</author_url>
  <blog_title>Secret Garden(Instrumental)</blog_title>
  <blog_url>https://secret-garden.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>irb で実行結果を pp で出力する手段がいくつかあるのでまとめ。 irb の起動オプションで変更する irb の起動オプションに --inspect pp を追加することで pp の出力になります。 $ irb --inspect pp irb(main):001:0&gt; (1..10).to_h { |it| [it, it] } = &gt; {1=&gt;1, 2=&gt;2, 3=&gt;3, 4=&gt;4, 5=&gt;5, 6=&gt;6, 7=&gt;7, 8=&gt;8, 9=&gt;9, 10=&gt;10} irb の起動中に変更する conf.inspect_mode = :pp を実行することで以降の出力が pp になります。 $…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecret-garden.hatenablog.com%2Fentry%2F2020%2F01%2F09%2F204123&quot; title=&quot;irb で実行結果を pp で出力する - Secret Garden(Instrumental)&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>2020-01-09 20:41:23</published>
  <title>irb で実行結果を pp で出力する</title>
  <type>rich</type>
  <url>https://secret-garden.hatenablog.com/entry/2020/01/09/204123</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
