From: "Jan E." Date: 2012-08-13T05:31:31+09:00 Subject: Re: What should I use instead of Generator in 1.9? Hi, An Enumerator is the right choice. However, in your case you don't even need to explicitly create an Enumerator, because this will be done automatically when omitting the block for the "each" method: @foo = (1..10).each Most "each" methods work like that. -- Posted via http://www.ruby-forum.com/.