ãã®è¨äºã¯ Ruby Advent Calendar 2015 ã® 8æ¥ç®ã§ãã æ¯è¼çãã¾ãç¥ããã¦ããªãã¨æããªã¹ã¹ã¡ã® Ruby ã®æ©è½ã 7ã¤ç´¹ä»ãã¾ãã Enumerator.new Enumerator.new ã¯ç¥ã£ã¦ã¯ãã¦ãããã¾ã使ããªã人ãå¤ãããã«æãã¾ãã ç§ã¯é常ã«ãã使ãã¾ãã çç±ã¯ ã¹ã³ã¼ããæ°ãã«å°å ¥ããã Producer-Consumer ãã¿ã¼ã³ãå¤ã®çæã¨æ¶è²»ã§ãã§ã¼ãºã®éããæ確åãããã ãã®ã¡ã½ããå ã§1度使ãããã ããªã®ã« yield ããã¡ã½ãããå¥ã«ä½ãã®ã¯ã¡ãã£ã¨æ°ãå¼ãããåå空éãæ±ããããªãã å ¨é¨ãä¸åº¦é åã«ãã¡ããã¨ã¡ã¢ãªãæ°ã«ãªããã¡ã¢ãªæ¶è²»ãç¯ç´ãããã ãã¹ããæµ ãããã Enumerable ã¢ã¸ã¥ã¼ã«ã®æ©è½ã欲ãã ã¨ãã£ãã¨ããã§ãã ãã¨ãã°ä¸è¨ã®ãããªãããã§ä½¿ãã¾ãã # Producer ãã§ã¼ãº use
{{#tags}}- {{label}}
{{/tags}}