<?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 ではオブジェクトを出力する場合、 #to_s が出力されるのでそれを利用する。 class Person def initialize name, age @name, @age = name, age end def to_s &quot;name : #{@name}, age : #{@age}&quot; end end homu = Person.new &quot;homu&quot;, 14 puts homu # =&gt; name : homu, age : 14 しかし、#to_s はあくまでも『文字列へ変換するメソッド』であってそれがイコール『標準出力したいもの』とは限らないので専用のメソッドがほしいです…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecret-garden.hatenablog.com%2Fentry%2F2015%2F07%2F10%2F211127&quot; title=&quot;Ruby でユーザクラスの標準出力をカスタマイズする - 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>2015-07-10 21:11:27</published>
  <title>Ruby でユーザクラスの標準出力をカスタマイズする</title>
  <type>rich</type>
  <url>https://secret-garden.hatenablog.com/entry/2015/07/10/211127</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
