<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>makimoto</author_name>
  <author_url>https://blog.hatena.ne.jp/makimoto/</author_url>
  <blog_title>クックパッド開発者ブログ</blog_title>
  <blog_url>https://techlife.cookpad.com/</blog_url>
  <categories>
  </categories>
  <description>技術部の牧本です。 今日はモンキーパッチの話をします。 モンキーパッチとは何か そもそもモンキーパッチ (monkey patch) とは何でしょうか? 端的に言えば、言語の組み込みクラスやライブラリ、その他外部ライブラリの挙動を、動的に拡張する仕組みをモンキーパッチと呼びます。 *1 例えば、Ruby のモンキーパッチのすごく単純な例として以下のようなものがあります。 module NilClassExtension def empty? true end end NilClass.prepend(NilClassExtension) インスタンスが空であるかどうかを判定するメソッドとしての…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftechlife.cookpad.com%2Fentry%2Fa-guide-to-monkey-patchers&quot; title=&quot;Ruby on Rails アプリケーションにおけるモンキーパッチの当て方 - クックパッド開発者ブログ&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>2016-08-31 16:00:00</published>
  <title>Ruby on Rails アプリケーションにおけるモンキーパッチの当て方</title>
  <type>rich</type>
  <url>https://techlife.cookpad.com/entry/a-guide-to-monkey-patchers</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
