<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>JunichiIto</author_name>
  <author_url>https://blog.hatena.ne.jp/JunichiIto/</author_url>
  <blog_title>give IT a try</blog_title>
  <blog_url>https://blog.jnito.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>OOP</anon>
  </categories>
  <description>衝撃を受けたできごと 最近Rubyを勉強しています。 JavaやC#でオブジェクト指向プログラミングの基本はマスターしてるから、Rubyもそのあたりは楽勝〜！・・・と思っていたら、JavaやC#の常識が全く通用しない振る舞いに遭遇してかなり衝撃を受けました。それは、 privateメソッドはサブクラスからも呼び出せる ・・・ということです！！がーん。 たとえば、JavaやC#だと自分のクラス内でprivateメソッドが使われていない場合、不要なメソッドとして削除できます。(リフレクションを使って呼び出される可能性はここでは無視ね) しかし、Rubyでは誰かがサブクラスを作って呼び出している可能…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.jnito.com%2Fentry%2F20120315%2F1331754912&quot; title=&quot;JavaやC#の常識が通用しないRubyのprivateメソッド - give IT a try&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>http://a0.twimg.com/profile_images/1118009309/IMGP0971.tiff_normal.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-03-15 04:55:12</published>
  <title>JavaやC#の常識が通用しないRubyのprivateメソッド</title>
  <type>rich</type>
  <url>https://blog.jnito.com/entry/20120315/1331754912</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
