{"categories":["Ruby"],"author_url":"https://blog.hatena.ne.jp/tanakaBox/","title":" \u305f\u306e\u3057\u3044Ruby \u7b2c6\u7ae0 \u7e70\u308a\u8fd4\u3057","image_url":null,"url":"https://boxnos.hatenablog.com/entry/20070428/1177739691","blog_title":"\u30dc\u30af\u30ce\u30b9","author_name":"tanakaBox","height":"190","provider_name":"Hatena Blog","blog_url":"https://boxnos.hatenablog.com/","description":"\u6587\u5b57\u5217\u6f14\u7b97\u3067\u30cf\u30de\u308b\u3002 irb(main):017:0> 5.times { |i| irb(main):018:1* print i + \" times\\n\" irb(main):019:1> } TypeError: String can't be coerced into Fixnum from (irb):18:in `+' from (irb):18 from (irb):17:in `times' from (irb):17\u81ea\u52d5\u5909\u63db\u3055\u308c\u306a\u3044\u306e\u306d\u30fb\u30fb\u30fb\u4e0d\u89aa\u5207\u30fb\u30fb\u30fbi.to_s\u3057\u306a\u3044\u3068\u30c0\u30e1\u3002 for\u6587 irb(main):052:0> sum = 0 => 0 irb(main):053\u2026","provider_url":"https://hatena.blog","type":"rich","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fboxnos.hatenablog.com%2Fentry%2F20070428%2F1177739691\" title=\" \u305f\u306e\u3057\u3044Ruby \u7b2c6\u7ae0 \u7e70\u308a\u8fd4\u3057 - \u30dc\u30af\u30ce\u30b9\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","published":"2007-04-28 14:54:51"}