{"url":"https://gakeppuchi-pg.hatenablog.com/entry/2020/11/21/122652","provider_name":"Hatena Blog","author_name":"gakeppuchi-pg","provider_url":"https://hatena.blog","description":"\u4e0b\u8a18VScode\u306b\u3064\u3044\u3066 even?\u30e1\u30bd\u30c3\u30c9\u306f\u5bfe\u8c61\u306e\u5024\u306b\u5bfe\u3057\u3066\u5076\u6570\u3001\u5947\u6570\u3092\u5224\u5225\u3059\u308b\u3002 count_evens\u306e\u5b9f\u5f15\u6570\u3092\u914d\u5217\u306b\u3059\u308b\u3053\u3068\u3067\u4eee\u5f15\u6570nums\u306b\u6e21\u3057\u3066\u3044\u308b\u3002 def count_evens(nums) count = 0 nums.each do |num| if num.even? count += 1 end end puts count end count_evens([2, 2, 0])","author_url":"https://blog.hatena.ne.jp/gakeppuchi-pg/","type":"rich","width":"100%","published":"2020-11-21 12:26:52","image_url":null,"blog_title":"\u304c\u3051\u3063\u3077\u3061\u30d7\u30ed\u30b0\u30e9\u30de\u30fc\u306e\u3072\u3068\u308a\u3054\u3068","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgakeppuchi-pg.hatenablog.com%2Fentry%2F2020%2F11%2F21%2F122652\" title=\"ruby\u30c9\u30ea\u30eb22 - \u304c\u3051\u3063\u3077\u3061\u30d7\u30ed\u30b0\u30e9\u30de\u30fc\u306e\u3072\u3068\u308a\u3054\u3068\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":[],"title":"ruby\u30c9\u30ea\u30eb22","height":"190","blog_url":"https://gakeppuchi-pg.hatenablog.com/"}