<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sinsoku</author_name>
  <author_url>https://blog.hatena.ne.jp/sinsoku/</author_url>
  <blog_title>アジャイルSEの憂鬱</blog_title>
  <blog_url>https://sinsoku.hatenablog.com/</blog_url>
  <categories>
    <anon>ruby</anon>
  </categories>
  <description>きっかけ Swiftでprotocolの実装を複数持てるのは便利そうだなぁと思ったことある。（foo as A）.call だとA#call で、(foo as B）.callだとB#callが呼べる的な #fukabori_rubykaigi_2022— 神速 (@sinsoku_listy) 2022年10月5日 よく考えたら as メソッドを定義するだけで実現できそうな気がしたので、実装してみた。 Swiftの話 Swiftを勉強してた頃に、プロトコル拡張で実装したメソッドをキャストした型によって呼び出し分けるのを試したことがある。 sinsoku.hatenablog.com 検証コー…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsinsoku.hatenablog.com%2Fentry%2F2022%2F10%2F05%2F224632&quot; title=&quot;Rubyで1つのインスタンスに同名メソッドを複数保つ方法 - アジャイルSEの憂鬱&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>2022-10-05 22:46:32</published>
  <title>Rubyで1つのインスタンスに同名メソッドを複数保つ方法</title>
  <type>rich</type>
  <url>https://sinsoku.hatenablog.com/entry/2022/10/05/224632</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
