generator.rb missing from 1.9.1 standard library?
Installed 1.9.1 Windows installer RC1 - generator.rb seems not to be not present
I copied generator.rb from lib/ruby/1.8, which fixed the problem with the library that required it.
AFAIK, generator is part of the standard library in 1.8 (it's documented on p683 of Pickaxe Second Edition).
Unintended omission? Functionality not needed in 1.9?
Updated by rogerdpack (Roger Pack) about 9 years ago
I believe it's been replaced with (now built in) enumerators and fibers.
I think you can get the same functionality Generator.new used to give you by just replacing it with Enumerator.new