<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yuhei_kagaya</author_name>
  <author_url>https://blog.hatena.ne.jp/yuhei_kagaya/</author_url>
  <blog_title>yuhei.kagaya</blog_title>
  <blog_url>https://yuheikagaya.hatenablog.jp/</blog_url>
  <categories>
    <anon>ruby</anon>
    <anon>rails</anon>
  </categories>
  <description>オープンクラス class Hoge def hello 'HELLO' end end class Hoge def hello 'hello taro!' end end p Hoge.new.hello #=&gt; &quot;hello taro!&quot; aliasでいったんメソッド名を退避するテクニック class Hoge def hello 'HELLO' end end class Hoge # (3) hello2のなかでold_method(旧helloを使う) def hello2 old_method + &quot; taro!&quot; end alias old_method hello # (1)…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyuheikagaya.hatenablog.jp%2Fentry%2F2015%2F06%2F16%2F000000&quot; title=&quot;RubyやRailsでメソッドを上書き・処理追加する方法いろいろ - yuhei.kagaya&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-06-16 00:00:00</published>
  <title>RubyやRailsでメソッドを上書き・処理追加する方法いろいろ</title>
  <type>rich</type>
  <url>https://yuheikagaya.hatenablog.jp/entry/2015/06/16/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
