{"version":"1.0","url":"https://cookies.hatenablog.jp/entry/2013/06/03/225152","provider_url":"https://hatena.blog","published":"2013-06-03 22:51:52","blog_url":"https://cookies.hatenablog.jp/","width":"100%","blog_title":"cookies.txt\u3000\u3000\u3000\u3000\u3000\u3000.scr","categories":["ruby"],"image_url":null,"author_name":"cookie-s","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcookies.hatenablog.jp%2Fentry%2F2013%2F06%2F03%2F225152\" title=\"method_missing\u3059\u3052\u30fc - cookies.txt\u3000\u3000\u3000\u3000\u3000\u3000.scr\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","author_url":"https://blog.hatena.ne.jp/cookie-s/","title":"method_missing\u3059\u3052\u30fc","height":"190","description":"method_missing\u3059\u3052\u30fc BasicObject\u3059\u3052\u30fc\u611f\u6fc0\u3057\u3061\u3083\u3044\u307e\u3059\u3002\u30e1\u30e2\uff1a Class, Module\u306f\u57fa\u672cObject\u306econstants\u3068\u306a\u308b\u306e\u3067\u3001 class \uff1a\uff1aInteger\u3068\u304b\u3057\u306a\u3044\u3068\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044\u3002 #\u306f\u3066\u306a\u8a18\u6cd5\u5bfe\u7b56 def coerce (obj) [obj, self.to_i] end\u3068\u304b\u3059\u308b\u3068\u3001\u305d\u306e\u30af\u30e9\u30b9\u3092Numeric\u306b\u30ad\u30e3\u30b9\u30c8\u3063\u307d\u3044\u3053\u3068\u304c\u3067\u304d\u308b\u3002 \u3068\u3044\u3046\u304bNumeric\u7cfb\u304c\u305d\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3093\u3067\u304f\u308c\u308b\u3002 TODO: include/extend\u3068\u304b\u3057\u305fmodule\u306emethod\u306ehook","provider_name":"Hatena Blog"}