<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gamelinks007</author_name>
  <author_url>https://blog.hatena.ne.jp/gamelinks007/</author_url>
  <blog_title>ゲームリンクスの徒然なる日常</blog_title>
  <blog_url>https://gamelinks007.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>経緯 最近、「Rubyにこういうのあったら便利かなぁ」と思ったメソッドをrstdというgemに追加して個人プロジェクトとかで使えるようにするのがマイブームになっています。 github.com で、色々実装している時に、サクッとRefinementsが使えないだろうかと思い、実装してみた記事になります。 やりたかったこと 以下のようなコードで特定のクラス内などでサクッとRefinementsが使いたかった。 class A using refine_method(Integer, :inc, -&gt;() {self + 1}) def inc puts 41.inc end end A.new.…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgamelinks007.hatenablog.com%2Fentry%2F2021%2F09%2F23%2F222826&quot; title=&quot;雑にRefinementsが使えるようにしてみた - ゲームリンクスの徒然なる日常&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>2021-09-23 22:28:26</published>
  <title>雑にRefinementsが使えるようにしてみた</title>
  <type>rich</type>
  <url>https://gamelinks007.hatenablog.com/entry/2021/09/23/222826</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
