<?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>一人 Ruby Advent Calendar 2017 9日目の記事になります。 デバッグ出力として &quot;クラス名#メソッド名&quot; を出力したい デバッグを行っている際に次のように &quot;クラス名#メソッド名&quot; を文字列で出力したいことがあります。 class X def homu # クラス名#メソッド名 p &quot;X#homu&quot; end end うーん、機械的に生成したいですね。 __method__ を使う Ruby では __method__ で『現在の』メソッド名を取得することができます。 これを利用することで次のように機械的に生成することができます。 class X def homu # ク…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecret-garden.hatenablog.com%2Fentry%2F2017%2F12%2F09%2F073740&quot; title=&quot;【一人 Ruby Advent Calendar 2017】クラス名+メソッド名をいい感じに出力する【9日目】 - 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>2017-12-09 07:37:40</published>
  <title>【一人 Ruby Advent Calendar 2017】クラス名+メソッド名をいい感じに出力する【9日目】</title>
  <type>rich</type>
  <url>https://secret-garden.hatenablog.com/entry/2017/12/09/073740</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
