<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>osyo-manga</author_name>
  <author_url>https://blog.hatena.ne.jp/osyo-manga/</author_url>
  <blog_title>Secret Garden(Instrumental)</blog_title>
  <blog_url>https://secret-garden.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>まあつくったのは結構前なんですが、つくりました。 Ruby は動的型付け言語なので、静的型付けのような型によるメソッドの多重定義は出来ないんですが、このライブラリによって静的型付けのようなメソッドの多重定義を実現する事ができます。 require &quot;stitcher&quot; using Stitcher class X # Fixnum オブジェクトのみ代入できる変数定義 stitcher_accessor value: Fixnum # Fixnum のみ受け取る stitcher_require [Fixnum] def add a value + a end # String のみ受け取る s…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecret-garden.hatenablog.com%2Fentry%2F2016%2F06%2F07%2F001100&quot; title=&quot;Ruby でメソッドを多重定義するためのライブラリをつくった - Secret Garden(Instrumental)&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>2016-06-07 00:11:00</published>
  <title>Ruby でメソッドを多重定義するためのライブラリをつくった</title>
  <type>rich</type>
  <url>https://secret-garden.hatenablog.com/entry/2016/06/07/001100</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
