<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>morning_reading</author_name>
  <author_url>https://blog.hatena.ne.jp/morning_reading/</author_url>
  <blog_title>毎朝30分読書会</blog_title>
  <blog_url>https://morning-reading.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>危険なメタプログラミングを防ぐ話題は続きのほうにありました。今日は9.2 「モンキーパッチを防ぐ」からです オープンクラスを無制限に使うのでなく、モジュールを作って include する → ancestors に出る 動的メソッドを定義する時は先に同名のメソッドが存在しないか確認する 継承したメソッドはどうするか 衝突した時にはどうするか というあたりはケースバイケース ここで第9章も終わり、第2部を読み終えました。引き続き第3部の付録に行きます。 付録A 「よく使うイディオム」 A.1 ミミックメソッド ローカル変数の代入とカレントオブジェクトの属性の代入(attr= メソッドの呼び出し)…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmorning-reading.hatenadiary.org%2Fentry%2F20101130%2Fp1&quot; title=&quot;メタプログラミングRuby 第9章 安全なメタプログラミング その3 - 毎朝30分読書会&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>2010-11-30 00:00:00</published>
  <title>メタプログラミングRuby 第9章 安全なメタプログラミング その3</title>
  <type>rich</type>
  <url>https://morning-reading.hatenadiary.org/entry/20101130/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
