{"provider_name":"Hatena Blog","width":"100%","author_name":"osyo-manga","height":"190","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecret-garden.hatenablog.com%2Fentry%2F2015%2F06%2F22%2F202002\" title=\"Ruby \u306e BasicObject \u3092\u5229\u7528\u3057\u305f\u3044\u5834\u9762 - Secret Garden(Instrumental)\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://secret-garden.hatenablog.com/entry/2015/06/22/202002","type":"rich","provider_url":"https://hatena.blog","description":"Ruby \u306e BasicObject \u3092\u5229\u7528\u3057\u305f\u3044\u5834\u9762\u3067\u3059\u304c\u3001\u516c\u5f0f\u3067\u306f Proxy \u30d1\u30bf\u30fc\u30f3\u3092\u4f8b\u306b\u3060\u3057\u3066\u3044\u307e\u3059\u3002 class Proxy < BasicObject def initialize target @target = target end def method_missing name, *args @target.__send__ name, *args end end proxy = Proxy.new 1 # method_missing \u7d4c\u7531\u3067 1.class \u304c\u547c\u3070\u308c\u308b proxy.class # => Fixnum proxy + 2 # => 3 \u3061\u306a\u307f\u306b\u4ee5\u524d\u4f5c\u3063\u305f \u2026","blog_title":"Secret Garden(Instrumental)","title":"Ruby \u306e BasicObject \u3092\u5229\u7528\u3057\u305f\u3044\u5834\u9762","blog_url":"https://secret-garden.hatenablog.com/","categories":["Ruby"],"version":"1.0","published":"2015-06-22 20:20:02","author_url":"https://blog.hatena.ne.jp/osyo-manga/"}