{"blog_url":"https://shinkufencer.hateblo.jp/","title":"Ruby\u3067 0 \u3092 \u5224\u5b9a\u3059\u308b\u306a\u3089 zero? \u306e\u307b\u3046\u304c\u30b9\u30de\u30fc\u30c8","published":"2019-08-21 00:00:00","image_url":null,"blog_title":"\u30b3\u30fc\u30c9\u65e5\u9032\u6708\u6b69","url":"https://shinkufencer.hateblo.jp/entry/2019/08/21/000000","type":"rich","height":"190","author_name":"shinkufencer","width":"100%","author_url":"https://blog.hatena.ne.jp/shinkufencer/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshinkufencer.hateblo.jp%2Fentry%2F2019%2F08%2F21%2F000000\" title=\"Ruby\u3067 0 \u3092 \u5224\u5b9a\u3059\u308b\u306a\u3089 zero? \u306e\u307b\u3046\u304c\u30b9\u30de\u30fc\u30c8 - \u30b3\u30fc\u30c9\u65e5\u9032\u6708\u6b69\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","version":"1.0","description":"\u82e5\u5e72\u30dd\u30a8\u30e0\u5bc4\u308a\u306a\u8a71\u3002 \u74b0\u5883 $ ruby -v ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-darwin18] \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u66f0\u304f \u81ea\u8eab\u304c\u30bc\u30ed\u306e\u6642\u3001true\u3092\u8fd4\u3057\u307e\u3059\u3002\u305d\u3046\u3067\u306a\u3044\u5834\u5408\u306f false \u3092\u8fd4\u3057\u307e\u3059\u3002 - instance method Numeric#zero? (Ruby 2.6.0) \u4f7f\u3046\u5229\u70b9 if a == 0 \u3088\u308a\u3082 if a.zero? \u306e\u307b\u3046\u304c\u898b\u3048\u65b9\u304c\u30b9\u30de\u30fc\u30c8 \u305d\u3082\u305d\u3082Numeric\u306a\u306e\u3067\u6570\u5024\u4ee5\u5916\u306b\u4f7f\u3046\u3068Exception\u3092\u767a\u884c\u3059\u308b\u306e\u3067\u6587\u5b57\u5217\u304c\u5909\u6570\u306b\u6df7\u5165\u3059\u308b\u306a\u3069\u306b\u6c17\u3065\u304d\u3084\u3059\u3044 \u6570\u5024\u3067\u3042\u308b\u3053\u3068\u3092\u660e\u78ba\u306b\u3067\u304d\u308b\u306e\u3067\u5f8c\u7d9a\u51e6\u7406\u304c\u2026","categories":["Ruby","\u96d1\u8a18"]}