<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kamatimaru</author_name>
  <author_url>https://blog.hatena.ne.jp/kamatimaru/</author_url>
  <blog_title>delhi09の勉強日記</blog_title>
  <blog_url>https://kamatimaru.hatenablog.com/</blog_url>
  <categories>
    <anon>設計</anon>
    <anon>Ruby</anon>
  </categories>
  <description>最近、オブジェクト指向における「委譲」の適切な使い方について考える機会があったのでマーティン・ファウラーの『リファクタリング』を読みながら勉強してみます。サンプルコードはRubyです。 www.ohmsha.co.jp サンプルコード 以下のようにNameクラスとPersonクラスがあるとします。PersonクラスはNameクラスに依存しています。 ※ PersonクラスのコンストラクタにNameクラスのインスタンスを渡す方法もあり、そこでも議論ができそうですが本記事では割愛します。 Nameクラス class Name attr_reader :first_name, :last_name …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkamatimaru.hatenablog.com%2Fentry%2F2026%2F01%2F20%2F001054&quot; title=&quot;「委譲」の適切な使い方を『リファクタリング』を読んで学ぶ - delhi09の勉強日記&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>2026-01-20 00:10:54</published>
  <title>「委譲」の適切な使い方を『リファクタリング』を読んで学ぶ</title>
  <type>rich</type>
  <url>https://kamatimaru.hatenablog.com/entry/2026/01/20/001054</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
