{"url":"https://unageanu.hatenablog.com/entry/20070514/1179118266","title":" \u30cd\u30b9\u30c8\u3055\u308c\u305f\u30d6\u30ed\u30c3\u30af\u304b\u3089\u306e\u8131\u51fa","blog_url":"https://unageanu.hatenablog.com/","author_url":"https://blog.hatena.ne.jp/unageanu/","author_name":"unageanu","width":"100%","published":"2007-05-14 13:51:06","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Funageanu.hatenablog.com%2Fentry%2F20070514%2F1179118266\" title=\" \u30cd\u30b9\u30c8\u3055\u308c\u305f\u30d6\u30ed\u30c3\u30af\u304b\u3089\u306e\u8131\u51fa - \u3046\u306a\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","version":"1.0","type":"rich","provider_name":"Hatena Blog","description":"catch,throw\u3067\u30cd\u30b9\u30c8\u3055\u308c\u305f\u30d6\u30ed\u30c3\u30af\u3092\u4e00\u6c17\u306b\u629c\u3051\u307e\u3059\u3002throw \u3067\u629c\u3051\u305f\u5834\u5408\u3001catch\u306e\u623b\u308a\u5024\u306fthrow\u306e\u7b2c2\u5f15\u6570\u3067\u3059\u3002 puts catch(:A) { 5.times {|i| puts \"outer loop:\" << i.to_s 5.times {|j| puts \"inner loop:\" << i.to_s << \"-\" << j.to_s throw :A, \"cancel\" } } \"end\" } \u51fa\u529b: outer loop:0 inner loop:0-0 cancel throw \u304c\u5b9f\u884c\u3055\u308c\u306a\u3051\u308c\u3070\u3001\u30d6\u30ed\u30c3\u30af\u3092\u305f\u3060\u5b9f\u884c\u3059\u308b\u3060\u3051\u3067\u3059\u3002\u3053\u306e\u5834\u5408\u3001\u623b\u308a\u5024\u306f\u30d6\u30ed\u30c3\u2026","blog_title":"\u3046\u306a\u306e\u65e5\u8a18","image_url":null,"categories":["Ruby"],"provider_url":"https://hatena.blog"}