{"image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhyoromo.hatenablog.com%2Fentry%2F20081115%2F1226766734\" title=\"\u305f\u306e\u3057\u3044Ruby \u7b2c10\u7ae0 \u7df4\u7fd2\u554f\u984c(P.180) - hyoromo\u306e\u30d6\u30ed\u30b0\" 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://hyoromo.hatenablog.com/entry/20081115/1226766734","provider_name":"Hatena Blog","version":"1.0","author_url":"https://blog.hatena.ne.jp/hyoromo/","categories":["Ruby1.8.7"],"provider_url":"https://hatena.blog","author_name":"hyoromo","blog_title":"hyoromo\u306e\u30d6\u30ed\u30b0","published":"2008-11-15 01:32:14","width":"100%","blog_url":"https://hyoromo.hatenablog.com/","title":"\u305f\u306e\u3057\u3044Ruby \u7b2c10\u7ae0 \u7df4\u7fd2\u554f\u984c(P.180)","type":"rich","height":"190","description":"\u5148\u65e5\u8cfc\u5165\u3057\u305f\u53c2\u8003\u66f8\u3088\u308a\u3001\u6570\u5024\u306b\u95a2\u3059\u308b\u7df4\u7fd2\u554f\u984c\u3002(1)\u300c\u83ef\u6c0f\u3092\u6c42\u3081\u3088\u300d\u3068\u3044\u3046\u554f\u984c\u3002\u5f0f\u306f\u300c\u83ef\u6c0f = \u6442\u6c0f * 9 / 5 + 32\u300d def cels2fahr(cels) fahr = cels * 9 / 5 + 32 end p cels2fahr(ARGV[0].to_i) \u3055\u3059\u304c\u306b\u3053\u308c\u304f\u3089\u3044\u306f\u3067\u304d\u308b\uff01\u3068\u601d\u3044\u304d\u3084\u3001\u5c0f\u6570\u70b9\u304c\u8003\u616e\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3067\u3057\u305f\u3002 \u3053\u3061\u3089\u304c\u516c\u5f0f\u306e\u89e3\u7b54 def cels2fahr(cels) return Float(cels) * 9 / 5 + 32 end (2)\u300c(1)\u3068\u306f\u9006\u306b\u6442\u6c0f\u3092\u6c42\u3081\u3088\u300d\u3068\u3044\u3046\u554f\u984c\u3002 def fahr2cels (fahr) # \u6442\u6c0f = (\u83ef\u6c0f\u2026"}