{"categories":["Ruby"],"blog_title":"Tbpgr Blog","provider_name":"Hatena Blog","published":"2014-04-23 22:15:42","image_url":null,"provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/tbpg/","version":"1.0","url":"https://tbpgr.hatenablog.com/entry/20140423/1398258942","title":"Ruby | Integer | to_r","height":"190","blog_url":"https://tbpgr.hatenablog.com/","author_name":"tbpg","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftbpgr.hatenablog.com%2Fentry%2F20140423%2F1398258942\" title=\"Ruby | Integer | to_r - Tbpgr Blog\" 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","description":"\u6982\u8981 Integer#to_r \u8a73\u7d30 \u81ea\u8eab\u3092 Rational \u306b\u5909\u63db\u3057\u307e\u3059\u3002 \u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9 # encoding: utf-8 require 'tbpgr_utils' bulk_puts_eval binding, <<-EOS 1.to_r 0.5.to_r 0.to_r -2.to_r EOS __END__ \u4e0b\u8a18\u306fTbpgrUtils gem\u306e\u6a5f\u80fd bulk_puts_eval https://rubygems.org/gems/tbpgr_utils https://github.com/tbpgr/tbpgr_utils \u51fa\u529b 1.to_r # => (1/1) 0.5.to\u2026"}