<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mirakui</author_name>
  <author_url>https://blog.hatena.ne.jp/mirakui/</author_url>
  <blog_title>昼メシ物語</blog_title>
  <blog_url>https://blog.mirakui.com/</blog_url>
  <categories>
    <anon>ruby</anon>
  </categories>
  <description>Rubyで変数をデバッグ出力をするときに、 hoge = 100 puts &quot;hoge = #{hoge}&quot; とかやるとおもうんですが、いちいち &quot;hoge = #{hoge}&quot; って書くのは面倒ですよね。 なので、理想的には hoge = 100 debug hoge # =&gt; 'hoge = 100' （あくまで理想） となってくれればありがたいです。ではどうしたらこのようなdebugメソッドが作れるでしょうか。 変数名をdebugメソッドに伝える Rubyをやっている人なら、ちょっと考えれば分かると思うのですが、上記の文面のままでは無理です。なぜなら、メソッドdebugへは hoge の…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.mirakui.com%2Fentry%2F20090925%2Fruby_debug&quot; title=&quot;Binding+callerで作るデバッグ出力メソッド - 昼メシ物語&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>2009-09-25 00:00:00</published>
  <title>Binding+callerで作るデバッグ出力メソッド</title>
  <type>rich</type>
  <url>https://blog.mirakui.com/entry/20090925/ruby_debug</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
