<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>jonny8</author_name>
  <author_url>https://blog.hatena.ne.jp/jonny8/</author_url>
  <blog_title>A Life on Rails</blog_title>
  <blog_url>https://jonny.hatenablog.com/</blog_url>
  <categories>
    <anon>ruby</anon>
  </categories>
  <description>require/include/extend/継承の違い require 外部ライブラリファイルの読み込み include クラスでモジュールをインクルードすると、モジュールのインスタンスメソッドが手に入る obj.my_method クラスメソッドを手に入れるには、クラスの特異クラスでモジュールをインクルードする：MyClass.my_method それをショートカットするのがextends。：MyClass.my_method module A def hello &quot;hello&quot; end end class B include A end test = B.new test.hello =…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjonny.hatenablog.com%2Fentry%2F2014%2F03%2F07%2F145731&quot; title=&quot;rubyのrequire/include/extend/継承/クラス拡張ミックスインまとめ - A Life 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>2014-03-07 14:57:31</published>
  <title>rubyのrequire/include/extend/継承/クラス拡張ミックスインまとめ</title>
  <type>rich</type>
  <url>https://jonny.hatenablog.com/entry/2014/03/07/145731</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
