<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ryo_43z</author_name>
  <author_url>https://blog.hatena.ne.jp/ryo_43z/</author_url>
  <blog_title>Code Design</blog_title>
  <blog_url>https://ryo-43z.hatenadiary.org/</blog_url>
  <categories>
    <anon>server</anon>
    <anon>デザインパターン</anon>
    <anon>ruby</anon>
  </categories>
  <description>decoratorパターンです 継承を利用せずに、委譲を利用する 同じinterfaceを持つインスタンスを保持する 多段の継承を利用するより変更に強い class Icecream def get_name; end def how_sweet; end endclass VanillaIcecream def get_name return &quot;バニラアイスクリーム&quot; end def how_sweet return &quot;抹茶味&quot; end endclass CasheNutsToppingIcecream def initialize(ice) @ice = ice end def get_n…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fryo-43z.hatenadiary.org%2Fentry%2F20080822%2F1219390742&quot; title=&quot;デザインパターンdecorator - Code Design&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>2008-08-22 16:39:02</published>
  <title>デザインパターンdecorator</title>
  <type>rich</type>
  <url>https://ryo-43z.hatenadiary.org/entry/20080822/1219390742</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
